aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/lib/common.sh4
-rwxr-xr-xtrunk/src/jail-commit5
-rwxr-xr-xtrunk/src/templatepkg5
3 files changed, 13 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index ac89596..28ee8ea 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -288,6 +288,10 @@ function eval_config {
TEMPLATE_STORAGE_STYLE="own-folder"
fi
+ if [ ! -z "$ROOT" ]; then
+ JAIL_ROOT="$ROOT"
+ fi
+
}
function default_version {
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit
index 656d568..b318f94 100755
--- a/trunk/src/jail-commit
+++ b/trunk/src/jail-commit
@@ -63,6 +63,11 @@ function template_svn_commit {
}
+# TODO: command line parsing: with no arguments, jail-commit
+# does exactly what it does now, but we also need to add
+# options to choose just one jail to commit; perhaps
+# make this similar to jail-update command line behaviour.
+
if [ -f $JAIL_LIST ]; then
for jailpath in `cat $JAIL_LIST`; do
jail="`basename $jailpath`"
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index d2eea48..c30bcdd 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -63,9 +63,12 @@ function usage {
# TODO: -i | --import
# -co | --checkout
+ # formas de iniciar a construcao de templates:
+ #
# - importado o /etc/simplepkg/templates
- # - importado apenas um template
+ # - importado apenas um template?
# - nao importado nada
+ #
}