summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-15 12:13:34 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-15 12:13:34 +0000
commit2b5bc1b2526d7dbb7ef8235542e9a539050c80e5 (patch)
treea40298acaa3937ff55c2183e0c5d0d6c7deb1ddb
parent43e52cc177a6e2b112cd233f71a53c54bcb97265 (diff)
downloadsamba-2b5bc1b2526d7dbb7ef8235542e9a539050c80e5.tar.gz
samba-2b5bc1b2526d7dbb7ef8235542e9a539050c80e5.tar.bz2
samba-2b5bc1b2526d7dbb7ef8235542e9a539050c80e5.zip
lots of shells don't have the -nt test, so use hackish find command
instead (This used to be commit 2d57346c2d07e43c4630a7f7963173d84c5a7c92)
-rwxr-xr-xsource4/script/build_idl.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/script/build_idl.sh b/source4/script/build_idl.sh
index c96cca0c79..81b9f61d4e 100755
--- a/source4/script/build_idl.sh
+++ b/source4/script/build_idl.sh
@@ -21,8 +21,13 @@ list=""
for f in librpc/idl/*.idl; do
basename=`basename $f .idl`
ndr="librpc/gen_ndr/ndr_$basename.c"
- if [ "$f" -nt $ndr -o ! -f $ndr ]; then
- list="$list $f"
+ # blergh - most shells don't have the -nt function
+ if [ -f $ndr ]; then
+ if [ x`find $f -newer $ndr -print` = x$f ]; then
+ list="$list $f"
+ fi
+ else
+ list="$list $f"
fi
done