aboutsummaryrefslogtreecommitdiff
path: root/templater
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-27 10:36:01 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-27 10:36:01 -0200
commitade98dfe542598c731b9e0bfb360bceb8c688c71 (patch)
treeac6141260192fb6f0a28fb2b06fe21d16b883ba9 /templater
parente60e70577245e4f47c05549194b74f38bb849265 (diff)
downloadtemplater-ade98dfe542598c731b9e0bfb360bceb8c688c71.tar.gz
templater-ade98dfe542598c731b9e0bfb360bceb8c688c71.tar.bz2
Adds templater_basic
Diffstat (limited to 'templater')
-rwxr-xr-xtemplater30
1 files changed, 20 insertions, 10 deletions
diff --git a/templater b/templater
index 160b5d6..cec59ed 100755
--- a/templater
+++ b/templater
@@ -67,6 +67,26 @@ function __templater_copy_or_append {
fi
}
+# Basic implementation
+function templater_basic {
+ if [ ! -e "$PROJECT/README.md" ]; then
+ (
+ cd $PROJECT &> /dev/null
+ echo "$PROJECT" > README.md
+ echo $PROJECT | sed -e 's|.|=|g' >> README.md
+ #echo "" >> README.md
+ #echo "This is the $PROJECT repository." >> README.md
+
+ echo "TODO" > TODO.md
+ echo "====" >> TODO.md
+ #echo "" >> TODO.md
+ #echo "* Nothing here? :P" >> TODO.md
+
+ touch ChangeLog
+ )
+ fi
+}
+
# Git implementation
function templater_git {
if [ ! -d "$PROJECT/.git" ]; then
@@ -74,16 +94,6 @@ function templater_git {
cd $PROJECT &> /dev/null
touch .gitignore
- echo "$PROJECT" > README.md
- echo "=========`echo $PROJECT | sed -e 's|.|=|g'`" >> README.md
- echo "" >> README.md
- echo "This is the $PROJECT repository." >> README.md
-
- echo "TODO" > TODO.md
- echo "====" >> TODO.md
- echo "" >> TODO.md
- echo "* Nothing here? :P" >> TODO.md
-
git init
git add .
#git commit -m "Initial import"