make librpc/build_idl.sh more portable
authorBjörn Jacke <bj@sernet.de>
Thu, 14 Jun 2012 17:58:00 +0000 (19:58 +0200)
committerBjoern Jacke <bj@sernet.de>
Thu, 14 Jun 2012 21:57:40 +0000 (23:57 +0200)
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun 14 23:57:40 CEST 2012 on sn-devel-104

librpc/build_idl.sh

index 35acd1f24e2bce1b87da5adf52bc9bf6b231a61b..f5901db7e60468033c30489f4943e5a68b7e91c5 100755 (executable)
@@ -28,7 +28,8 @@ fi
 ## Find newer files rather than rebuild all of them. Also handle the case
 ## where the pidl compiler itself is newer.
 ##
-PIDL_NEWEST=$(ls -rt $(find $PIDL_DIR -type f) | tail -n -1)
+PIDL_NEWEST=`find $PIDL_DIR -type f -print | xargs ls -rt | tail -1`
+echo "jfyi: PIDL_NEWEST is $PIDL_NEWEST"
 
 list=""
 for f in ${IDL_FILES}; do