aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/templatepkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-xtrunk/src/templatepkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 1495ae2..eb7b56f 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -122,7 +122,7 @@ function import_export_templates {
if [ "$mode" == "export" ]; then
preposition="to"
- svn import templates $repository
+ svn import templates $repository -m "initial import"
if [ "$?" != "0" ]; then
echo $BASENAME: export failed
exit 1
@@ -290,7 +290,7 @@ function template_add {
mkdir -p $TEMPLATE_BASE.d/`dirname $candidate`
cp -a $jail/$candidate $TEMPLATE_BASE.d/$candidate
if use_svn; then
- ( cd $TEMPLATE_BASE.d && svn add $candidate )
+ ( cd $TEMPLATE_BASE.d && svn add ./$candidate )
info_commit="yes"
else
echo Added $jail/$candidate on $TEMPLATE_BASE.d/$candidate
@@ -304,7 +304,7 @@ function template_add {
else
echo $BASENAME: file $file already on $TEMPLATE_BASE.d
- exti 1
+ exit 1
fi
else
if [ -a "$jail/$file" ]; then
@@ -313,7 +313,7 @@ function template_add {
destination="`echo $TEMPLATE_BASE.d/$file | sed -e 's/\/$//'`"
cp -a $jail/$file $destination
if use_svn; then
- ( cd $TEMPLATE_BASE.d && svn add $file )
+ ( cd $TEMPLATE_BASE.d && svn add ./$file )
echo $BASENAME: please run jail-commit to add $file into the svn repository
true
else