summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
Diffstat (limited to 'librpc')
-rwxr-xr-xlibrpc/build_idl.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/librpc/build_idl.sh b/librpc/build_idl.sh
index e028bc6831..35acd1f24e 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