aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/templatepkg
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 03:10:49 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-04 03:10:49 +0000
commit02706ca126a16fe1fdfa265647a46d8ad5c50ad0 (patch)
tree0bcaf65e780c4a42a9bcf7178f431af0dcca8772 /trunk/src/templatepkg
parentc1dc33f3db8ca32442676be7be7b5d88d3389cc6 (diff)
downloadsimplepkg-02706ca126a16fe1fdfa265647a46d8ad5c50ad0.tar.gz
simplepkg-02706ca126a16fe1fdfa265647a46d8ad5c50ad0.tar.bz2
templatepkg smal fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@218 04377dda-e619-0410-9926-eae83683ac58
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