]> gitweb.fluxo.info Git - templater.git/commitdiff
Be verbose if something is already set
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Oct 2017 13:01:55 +0000 (11:01 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Oct 2017 13:01:55 +0000 (11:01 -0200)
templater

index f7d5b482df6b41ee88bd63c80f4ab7ce4d5ba122..170e203ea419c038d39351fbf643916633b2978a 100755 (executable)
--- a/templater
+++ b/templater
@@ -84,6 +84,8 @@ function templater_basic {
     #echo "* Nothing here? :P" >> TODO.md
 
     touch ChangeLog
+  else
+    __templater_echo "Basic files already set"
   fi
 }
 
@@ -97,7 +99,7 @@ function templater_git {
     git add .
     #git commit -m "Initial import"
   else
-    __templater_echo "Git already installed"
+    __templater_echo "Git already set"
   fi
 }
 
@@ -109,6 +111,8 @@ function templater_githooks {
       __templater___templater_echo "Setting up git-hooks..."
       git hooks --install
     fi
+  else
+    __templater_echo "Git hooks already set"
   fi
 }
 
@@ -126,6 +130,8 @@ function templater_gitflow {
         git flow init -d
       fi
     fi
+  else
+    __templater_echo "Git flow already set"
   fi
 }
 
@@ -137,6 +143,8 @@ function templater_vagrant {
     vagrant init
     echo '.vagrant' >> .gitignore
     #git commit -a -m "Adds vagrant support"
+  else
+    __templater_echo "Vagrant already set"
   fi
 }
 
@@ -146,6 +154,8 @@ function templater_kvmx {
     __templater___templater_echo "Setting up kvmx..."
     kvmx init
     #git commit -a -m "Adds kvmx support"
+  else
+    __templater_echo "KVMX already set"
   fi
 }
 
@@ -159,6 +169,8 @@ function templater_puppet {
     #git submodule add $BOOSTRAP puppet
     git remote add puppet $BOOTSTRAP
     git subtree add --prefix puppet $BOOTSTRAP master --squash
+  else
+    __templater_echo "Puppet already set"
   fi
 }
 
@@ -199,6 +211,8 @@ function templater_ikiwiki {
       git add .
       #git commit -a -m "Static site generation support using ikiwiki"
     fi
+  else
+    __templater_echo "Ikiwiki already set"
   fi
 }
 
@@ -228,6 +242,8 @@ function templater_sphinx {
       mkdir _themes
       git submodule add https://github.com/snide/sphinx_rtd_theme _themes/sphinx_rtd_theme
     fi
+  else
+    __templater_echo "Sphinx already set"
   fi
 }
 
@@ -252,6 +268,8 @@ function templater_pelican {
     if [ ! -d "content" ]; then
       cp -r $DIRNAME/share/pelican/content .
     fi
+  else
+    __templater_echo "Pelican already set"
   fi
 }