From e7cdc72ff67548ad7bf0d0dc44370fafccc8e438 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Fri, 31 Jan 2014 10:37:52 -0500 Subject: [PATCH] devscript: factor list_apps_in_pkg into functions no functional change --- developer/bin/list_apps_in_pkg | 53 ++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/developer/bin/list_apps_in_pkg b/developer/bin/list_apps_in_pkg index 6fcac295ba..b27e38f022 100755 --- a/developer/bin/list_apps_in_pkg +++ b/developer/bin/list_apps_in_pkg @@ -7,6 +7,33 @@ set -e # exit on any uncaught error set +o histexpand # don't expand history expressions shopt -s nocasematch # case-insensitive regular expressions +app_source_1 () { + /usr/bin/find "$tmpdir" -name PackageInfo -print0 | \ + /usr/bin/xargs -0 /usr/bin/perl -0777 -ne \ + 'while (m{