aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/jail-commit
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/jail-commit')
-rwxr-xr-xtrunk/src/jail-commit10
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