diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-05 23:14:35 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-05 23:14:35 +0000 |
commit | 9e11a804a8604fa8e379fe8f342aa8135d042faa (patch) | |
tree | 944fdf29a2956014dc49c08ed33a507fe7eda477 /trunk/src/jail-commit | |
parent | eed8f5ad968c3af4562075763689b1009ebf71e9 (diff) | |
download | simplepkg-9e11a804a8604fa8e379fe8f342aa8135d042faa.tar.gz simplepkg-9e11a804a8604fa8e379fe8f342aa8135d042faa.tar.bz2 |
templatepkg: added -t and -p
jail-update: added --help
jail-commit: added --help and --all
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@268 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/jail-commit')
-rwxr-xr-x | trunk/src/jail-commit | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit index d398e0f..61b93bf 100755 --- a/trunk/src/jail-commit +++ b/trunk/src/jail-commit @@ -30,7 +30,9 @@ fi function usage { echo $BASENAME: commit a jail configuration into a template - echo usage: $BASENAME [<jail-path> [template]] + echo "usage: $BASENAME [<jail-path> [template]]" + echo " $BASENAME --all to commit all templates" + echo " $BASENAME --help for help" } @@ -129,7 +131,11 @@ function do_commit { } -if [ ! -z "$1" ]; then +if [ "$1" == "--help" ]; then + usage +elif [ "$1" == "--all" ]; then + template_svn_commit $BASE_CONF/templates +elif [ ! -z "$1" ]; then do_commit $1 $2 else if [ -f $JAIL_LIST ]; then |