diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-04 03:10:49 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-04 03:10:49 +0000 |
commit | 02706ca126a16fe1fdfa265647a46d8ad5c50ad0 (patch) | |
tree | 0bcaf65e780c4a42a9bcf7178f431af0dcca8772 /trunk/src | |
parent | c1dc33f3db8ca32442676be7be7b5d88d3389cc6 (diff) | |
download | simplepkg-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')
-rwxr-xr-x | trunk/src/templatepkg | 8 |
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 |