From: Michael Wallner Date: Sun, 30 Jun 2013 20:36:35 +0000 (+0200) Subject: noet X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b609ee3359952dcb039173e14abebd5ed21c8b42;p=m6w6%2Fbtr noet --- diff --git a/lib/btr/btr.sh b/lib/btr/btr.sh index 2b79088..e8bc4c1 100755 --- a/lib/btr/btr.sh +++ b/lib/btr/btr.sh @@ -1,28 +1,30 @@ #!/bin/sh function help { - echo "btr v0.2.0, (c) Michael Wallner " - echo - echo "Usage: $(basename $0) [-hv] [] " - echo - echo " -h, --help Display this help" - echo " -v, --verbose Be more verbose" - echo - echo " Options:" - echo " -s, --source= Use the specified source ruleset" - echo " -b, --build= Use the specified build ruleset" - echo " -r, --report= Use the specifued report ruleset" - echo " -B, --branch= Checkout this branch" - echo " -D, --directory= Use this directory as work root" - echo " -S, --suffix= Append suffix to the build name" - echo " -C, --configure= Define \$CONFIGURE options" - echo - echo " Rulesets:" - echo " source: git, svn" - echo " build: php, pecl" - echo " report: mail" - echo - exit + echo "btr v0.2.0, (c) Michael Wallner " + echo + echo "Usage: $(basename $0) [-hv] [] " + echo + echo " -h, --help Display this help" + echo " -v, --verbose Be more verbose" + echo + echo " Options:" + echo " -s, --source= Use the specified source ruleset" + echo " -b, --build= Use the specified build ruleset" + echo " -r, --report= Use the specifued report ruleset" + echo " -B, --branch= Checkout this branch" + echo " -D, --directory= Use this directory as work root" + echo " -S, --suffix= Append suffix to the build name" + echo " -C, --configure= Define \$CONFIGURE options" + echo + echo " Rulesets:" + for ruleset in source build report + do + printf " %10s: %s\n" $ruleset \ + "$(find "$LIBDIR/$ruleset" -name '*.mk' -exec basename {} .mk \; | sort | xargs)" + done + echo + exit } function parseopts {