From 38d7ffca0b591694c17509d20c8bf55606e60536 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Oct 2013 15:07:31 +0100 Subject: app-ls-apps: o New command to list all applications installed under a directory. app-foreach-app: o New command to execute another command for each app installed under the current directory. app-init/app-install-file: o Adding -C and -c to prepand and append config files around the appliation's build-in configuration files. app-cat-conf: o Use $APP_HOME as the 'appliation installation directory' if set. app-operator-pid: o Support PID files created by the launcher. --- bin/app-foreach-app | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/app-foreach-app (limited to 'bin/app-foreach-app') diff --git a/bin/app-foreach-app b/bin/app-foreach-app new file mode 100755 index 0000000..5b5b108 --- /dev/null +++ b/bin/app-foreach-app @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e +set -u + +APPSH_HOME=$(cd $(dirname "$0")/.. && pwd) + +. $APPSH_HOME/lib/common +# HEADER END + +usage_text() { + echo "usage: $usage_app [args]" +} + +IFS=" " +app-ls-apps | while read app +do + unset IFS + (cd $app; "$@") | while read line + do + echo "$app: $line" + done +done -- cgit v1.2.3