diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-19 09:03:18 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-19 17:37:39 +0200 |
commit | 15c60456994b57b94da21c5be57d9b798242b42c (patch) | |
tree | af1aedf7088dbcc9ff3479d9236557e4247b7600 | |
parent | 7011d7ef188de916b8428acc40efd5264b268d8d (diff) | |
download | samba-15c60456994b57b94da21c5be57d9b798242b42c.tar.gz |
librpc: Make finding newest pidl file more portable
FreeBSD find does not support the -printf argument.
David, please check if this still work for you!
-rwxr-xr-x | librpc/build_idl.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/librpc/build_idl.sh b/librpc/build_idl.sh index e028bc68311..35acd1f24e2 100755 --- a/librpc/build_idl.sh +++ b/librpc/build_idl.sh @@ -28,15 +28,7 @@ fi ## Find newer files rather than rebuild all of them. Also handle the case ## where the pidl compiler itself is newer. ## -PIDL_NEWEST=`find $PIDL_DIR -type f -printf "%p\0%T@\n" \ - | perl -e '$ts_newest = 0; - while (<STDIN>) { - ($f, $ts) = split(/\0/); - next if ($ts <= $ts_newest); - $ts_newest = $ts; - $f_newest = $f; - } - print $f_newest'` || exit 1 +PIDL_NEWEST=$(ls -rt $(find $PIDL_DIR -type f) | tail -n -1) list="" for f in ${IDL_FILES}; do |