aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-01-23 15:07:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-01-23 15:07:50 -0300
commit9da19c8d2612fc09eb58c9604fe069c1fb2d6552 (patch)
treebef41433ab43ec97303d1ed52bd12dcb36020ba5 /share
parentbdb75505d8c4afcbbbd18b530ed4649a0f56a63a (diff)
downloadtemplater-9da19c8d2612fc09eb58c9604fe069c1fb2d6552.tar.gz
templater-9da19c8d2612fc09eb58c9604fe069c1fb2d6552.tar.bz2
Fix: basic: better ChangeLog and README formats
Diffstat (limited to 'share')
-rwxr-xr-xshare/templater/basic/setup21
1 files changed, 14 insertions, 7 deletions
diff --git a/share/templater/basic/setup b/share/templater/basic/setup
index 0ae3148..8a5e324 100755
--- a/share/templater/basic/setup
+++ b/share/templater/basic/setup
@@ -13,17 +13,24 @@ source $SHARE/templater/functions || exit 1
# Basic implementation
function templater_basic {
if [ ! -e "README.md" ]; then
- echo "$PROJECT" > README.md
- basename $PROJECT | sed -e 's|.|=|g' >> README.md
+ echo "# $PROJECT" > README.md
+ #basename $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
+ if [ ! -e "TODO.md" ]; then
+ echo "# TODO" > TODO.md
+ #echo "" >> TODO.md
+ #echo "* Nothing here? :P" >> TODO.md
+ fi
- touch ChangeLog
+ if [ ! -e "ChangeLog.md" ]; then
+ echo "# ChangeLog" > ChangeLog.md
+ echo "" >> ChangeLog.md
+ echo "## YYYY-MM-DD - Unreleased" >> ChangeLog.md
+ echo "" >> ChangeLog.md
+ echo "* Initial version." >> ChangeLog.md
+ fi
if [ ! -e 'Makefile' ]; then
cp $SHARE/templater/files/Makefile .