diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 10:51:09 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 10:51:09 -0200 |
commit | 619cdf4206536ee1b67e0ddefe3ba4fc8a1cb9ec (patch) | |
tree | 5deb850f5cce9f86b2f6e1c8d22eba8e4fcc630f /templater | |
parent | fbaa60c7c878d08de6f14424c5a18446bd300c50 (diff) | |
download | templater-619cdf4206536ee1b67e0ddefe3ba4fc8a1cb9ec.tar.gz templater-619cdf4206536ee1b67e0ddefe3ba4fc8a1cb9ec.tar.bz2 |
Do not mess with Makefiles
Diffstat (limited to 'templater')
-rwxr-xr-x | templater | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -175,8 +175,10 @@ function templater_ikiwiki { if [ ! -e "Makefile" ]; then cp $DIRNAME/share/ikiwiki/Makefile . - elif ! grep -q ^wiki: Makefile; then - grep -v '^#' $DIRNAME/share/ikiwiki/Makefile >> Makefile + #elif ! grep -q ^wiki: Makefile; then + # grep -v '^#' $DIRNAME/share/ikiwiki/Makefile >> Makefile + else + cp $DIRNAME/share/ikiwiki/Makefile Makefile.ikiwiki fi if [ ! -d "templates" ]; then @@ -207,8 +209,10 @@ function templater_sphinx { if [ ! -e "Makefile" ]; then cp $DIRNAME/share/sphinx/Makefile . - elif ! grep -q sphinx Makefile; then - grep -v '^#' $DIRNAME/share/sphinx/Makefile >> Makefile + #elif ! grep -q sphinx Makefile; then + # grep -v '^#' $DIRNAME/share/sphinx/Makefile >> Makefile + else + cp $DIRNAME/share/ikiwiki/Makefile Makefile.sphinx fi if [ ! -d "_static" ]; then @@ -235,8 +239,10 @@ function templater_pelican { if [ ! -e "Makefile" ]; then cp $DIRNAME/share/pelican/Makefile . - elif ! grep -q pelican Makefile; then - grep -v '^#' $DIRNAME/share/pelican/Makefile >> Makefile + #elif ! grep -q pelican Makefile; then + # grep -v '^#' $DIRNAME/share/pelican/Makefile >> Makefile + else + cp $DIRNAME/share/ikiwiki/Makefile Makefile.pelican fi if [ ! -d "content" ]; then |