From: Björn Jacke Date: Fri, 7 May 2010 11:38:00 +0000 (+0200) Subject: idl: fix Unix builds by replacing bashism X-Git-Tag: samba-3.6.0pre1~2183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e0641e3466ba765174a5036816f6ccef11922f;p=thirdparty%2Fsamba.git idl: fix Unix builds by replacing bashism test -nt is not portable - tridge, please check! --- diff --git a/librpc/build_idl.sh b/librpc/build_idl.sh index a130d9eb5a5..4ef1e4b47ee 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 72d44add61f..2a73755f0a2 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 }