3 if [[ -n "${PPG_DEBUG}" ]]; then
8 echo "Usage: ppg COMMAND [OPTIONS] [TARGET]"
10 echo "ppg commands are:"
12 cat <<\EOF |
sed -e 's/^/ /'
14 For development environments
16 init-devenv Prepares a development
/test environment
for commits
17 commit Commits though to git
18 schedule Schedule a commit
for merge to production
22 clone Clones and inits a client environment
23 init Prepares a client environment after a
"git clone"
24 pullapply Updates and applies config updates
25 apply Apply changes manually
30 # RHEL6/CentOS6 does not have /usr/bin/realpath
31 PPG_EXEC_PATH
=$
( dirname $
(readlink
-f "${BASH_SOURCE[0]}" ) )
40 -v|
--v|
--ve|
--ver|
--vers|
--versi|
--versio|
--version)
41 echo "ppg version @@PPG_VERSION@@"
47 echo >&2 "ERROR: Unknown option $cmd"
52 if [[ -x "$PPG_EXEC_PATH/ppg-$cmd" ]]; then
53 exec "$PPG_EXEC_PATH/ppg-$cmd" "$@"
56 echo >&2 "ERROR: Unknown command $cmd"