summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-07 13:38:00 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-07 13:38:00 +0200
commit10e0641e3466ba765174a5036816f6ccef11922f (patch)
treee9a4a596d1c58ccd169a533a912fed55892aafce
parent5910f4cadea4f2564fe360602e5077c388a8c8cd (diff)
downloadsamba-10e0641e3466ba765174a5036816f6ccef11922f.tar.gz
samba-10e0641e3466ba765174a5036816f6ccef11922f.tar.bz2
samba-10e0641e3466ba765174a5036816f6ccef11922f.zip
idl: fix Unix builds by replacing bashism
test -nt is not portable - tridge, please check!
-rwxr-xr-xlibrpc/build_idl.sh2
-rwxr-xr-xsource3/script/build_idl.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/librpc/build_idl.sh b/librpc/build_idl.sh
index a130d9eb5a..4ef1e4b47e 100755
--- a/librpc/build_idl.sh
+++ b/librpc/build_idl.sh
@@ -38,7 +38,7 @@ for f in ${IDL_FILES}; do
list="$list $f"
break
}
- [ $f -nt $PIDL_OUTPUTDIR/$o ] && {
+ test "`find $f -newer $PIDL_OUTPUTDIR/$o`" = "" && {
list="$list $f"
break
}
diff --git a/source3/script/build_idl.sh b/source3/script/build_idl.sh
index 72d44add61..2a73755f0a 100755
--- a/source3/script/build_idl.sh
+++ b/source3/script/build_idl.sh
@@ -25,7 +25,7 @@ for f in ${IDL_FILES}; do
list="$list $f"
break
}
- [ $f -nt $PIDL_OUTPUTDIR/$o ] && {
+ test "`find $f -newer $PIDL_OUTPUTDIR/$o`" = "" && {
list="$list $f"
break
}