summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
89e9984)
In determining whether to compile a given .idl source file, build_idl.sh
currently checks:
a) that all build output files exist
b) build output files are newer than their corresponding .idl source
The .idl is rebuilt if either of the above conditions is false.
This logic does not catch the case where the pidl compiler itself is
changed. An IDL rebuild should occur in such a case.
https://bugzilla.samba.org/show_bug.cgi?id=8865
[ -d $PIDL_OUTPUTDIR ] || mkdir -p $PIDL_OUTPUTDIR || exit 1
[ -d $PIDL_OUTPUTDIR ] || mkdir -p $PIDL_OUTPUTDIR || exit 1
if [ $FULL = 1 ]; then
echo "Rebuilding all idl files"
if [ $FULL = 1 ]; then
echo "Rebuilding all idl files"
- $PIDL $IDL_FILES || exit 1
+ $PIDL_CMD $IDL_FILES || exit 1
-## Find newer files rather than rebuild all of them
+## Find newer files rather than rebuild all of them. Also handle the case
+## where the pidl compiler itself is newer.
+ test "`find $PIDL -newer $PIDL_OUTPUTDIR/$o`" != "" && {
+ list="$list $f"
+ break
+ }
##
if [ "x$list" != x ]; then
##
if [ "x$list" != x ]; then
- # echo "${PIDL} ${list}"
- $PIDL $list || exit 1
+ # echo "${PIDL_CMD} ${list}"
+ $PIDL_CMD $list || exit 1