$OpenBSD: patch-kde-dev-scripts_cheatmake,v 1.1 2013/07/05 14:32:50 zhuk Exp $
Cleanup development scripts, making them more portable and secure.
Upstream review 110858: http://git.reviewboard.kde.org/r/110858/
--- kde-dev-scripts/cheatmake.orig	Fri Jun 28 22:03:13 2013
+++ kde-dev-scripts/cheatmake	Fri Jul  5 18:14:32 2013
@@ -68,7 +68,7 @@ case $1 in
       # separately from the rest of the "-o target" lines (for libs and binaries)
       # (For libs and bins another way would be to grep for "linking")
       # The "ls" is for sorting by date
-      $UNSERMAKE -n | perl -e 'while(<>) { if (/by libtool/) { s/.*> //; print; } if (m/-o ([^ ]*)/ && $1!~/\.o$/) { print "$1\n"; } }' | xargs --no-run-if-empty ls -t -1
+      $UNSERMAKE -n | perl -e 'while(<>) { if (/by libtool/) { s/.*> //; print; } if (m/-o ([^ ]*)/ && $1!~/\.o$/) { print "$1\n"; } }' | xargs -r ls -t -1
     fi
     ;;
   why )
