diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-11 20:36:17 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-11 20:36:17 +0000 |
commit | c6df3969c725f6a102a0d4ae9d8a7265eba48c85 (patch) | |
tree | 5ac4fbc299af5415b4e738bbf5d91fe29d74f3d5 /trunk/src/templatepkg | |
parent | f5ddefdbd8118f70eb457566de06c16daf5834fd (diff) | |
download | simplepkg-c6df3969c725f6a102a0d4ae9d8a7265eba48c85.tar.gz simplepkg-c6df3969c725f6a102a0d4ae9d8a7265eba48c85.tar.bz2 |
added jail-update and --sync option for templatepkg
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@185 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-x | trunk/src/templatepkg | 13 |
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 |