- echo "btr v0.2.0, (c) Michael Wallner <mike@php.net>"
- echo
- echo "Usage: $(basename $0) [-hv] [<options>] <repository>"
- echo
- echo " -h, --help Display this help"
- echo " -v, --verbose Be more verbose"
- echo
- echo " Options:"
- echo " -s, --source=<rules> Use the specified source ruleset"
- echo " -b, --build=<rules> Use the specified build ruleset"
- echo " -r, --report=<rules> Use the specifued report ruleset"
- echo " -B, --branch=<branch> Checkout this branch"
- echo " -D, --directory=<directory> Use this directory as work root"
- echo " -S, --suffix=<suffix> Append suffix to the build name"
- echo " -C, --configure=<options> Define \$CONFIGURE options"
- echo
- echo " Rulesets:"
- echo " source: git"
- echo " build: php"
- echo " report: mail"
- echo
- exit
+ echo "btr v0.3.0, (c) Michael Wallner <mike@php.net>"
+ echo
+ echo "Usage: $(basename $0) [-hyvqcC] [<options>]"
+ echo
+ echo " -h, --help Display this help"
+ echo " -y, --yes Always assume yes"
+ echo " -v, --verbose Be more verbose"
+ echo " -q, --quiet Be more quiet"
+ echo " -c, --clean Clean build"
+ echo " -C, --vcsclean Clean repo/branch"
+ echo
+ echo " Options:"
+ echo " -f, --config=<file> Read configuration from a file"
+ echo " -s, --source=<rules> Use the specified source ruleset"
+ echo " -b, --build=<rules> Use the specified build ruleset"
+ echo " -r, --report=<rules> Use the specifued report ruleset"
+ echo " -T, --test=<args> Provide test runner arguments"
+ echo " -B, --branch=<branch> Checkout this branch"
+ echo " -D, --directory=<directory> Use this directory as work root"
+ echo " -S, --suffix=<suffix> Append suffix to the build name"
+ echo
+ echo " Rules format:"
+ echo " type=argument e.g: git=git@github.com:m6w6/btr.git"
+ echo " irc=irc://btr@chat.freenode.org/#btr"
+ echo " mail=\"-c copy@to rcpt@to\""
+ echo " notify-send=\"-u low\""
+ echo
+ echo " Note though, that some rules do not use any argument."
+ 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
+ echo " Examples:"
+ echo
+ echo " Clone PHP's git, use PHP-5.5 branch, build with php ruleset and"
+ echo " run the test suite with valgrind (-m) on a debug build and report"
+ echo " the results with a simple OSD notification:"
+ echo " $ btr -s git=git@php.net:php/php-src.git -B PHP-5.5 \\"
+ echo " -b \"php=--enable-debug\" -T-m -r notify-send"
+ echo " See also php.example.conf"
+ echo
+ echo " Clone CURL's git (use master), build with GNU autotools"
+ echo " ruleset which runs 'make check' and mail the report to the"
+ echo " current user. Verbosely show all actions taken:"
+ echo " $ btr -v -s git=https://github.com/bagder/curl.git -b gnu -r mail"
+ echo " See also curl.example.conf"
+ echo
+ exit