]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: smal fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 16:31:22 +0000 (16:31 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 16:31:22 +0000 (16:31 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@231 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index e6050119cb53d5edf73a472c5ef6ff0dc4937943..e2feaa7a23e0bf21050464c59c929fc5ad4d810f 100755 (executable)
@@ -122,7 +122,7 @@ function import_export_templates {
 
       if [ "$mode" == "export" ]; then
         preposition="to"
-        svn import templates $repository -m "initial import"
+        svn import templates/ $repository/ -m "initial import"
         if [ "$?" != "0" ]; then
           echo $BASENAME: export failed
           exit 1
@@ -159,7 +159,7 @@ function template_create {
 
   local template_base info_commit
 
-  if  [ ! -d "`dirname $TEMPLATE_BASE`" ]; then
+  if [ ! -d "`dirname $TEMPLATE_BASE`" ]; then
     if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then
       cd `dirname $TEMPLATE_BASE`
       svn mkdir `dirname $TEMPLATE_BASE`
@@ -275,8 +275,6 @@ function template_add {
 
   local info_commit cwd
 
-  mkdir -p $TEMPLATE_BASE.d
-
   if [ -z "$1" ] || [ -z "$2" ]; then
     return 1
   fi