aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/templatepkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-xtrunk/src/templatepkg13
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 1382759..0a48406 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -51,6 +51,10 @@ function usage {
echo ""
echo " $BASENAME -d <template> <file-name>"
echo ""
+ echo " -s | --sync: sync a template working copy; arguments are:"
+ echo ""
+ echo " $BASENAME -d <template>"
+ echo ""
echo " in all cases (-c, -u and -a), jail-root defaults to /, if ommited"
echo ""
exit 1
@@ -214,6 +218,15 @@ elif [ "$1" == "-d" ] || [ "$1" == "--delete" ]; then
fi
+elif [ "$1" == "-s" ] || [ "$1" == "--sync" ]; then
+
+ if [ "$TEMPLATES_UNDER_SVN" == "1" ]; then
+ if [ -d "$TEMPLATE_BASE.d/.svn" ]; then
+ ( cd $TEMPLATE_BASE.d && svn update )
+ true
+ fi
+ fi
+
else
usage
fi