diff options
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | install.sh | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -12,7 +12,7 @@ include_file() { cp install.sh tmp1 i=1 for f in archives.html article.html \ - fugitive.css print.css \ + fugitive.css print.css README \ post-commit.sh post-receive.sh; do j=$((1 - i)) include_file tmp$i $f > tmp$j @@ -47,6 +47,11 @@ EOF #INCLUDE:archives.html# EOF echo "done." + echo -n "Writing dummy article (README)... " + (base64 -d | gunzip) > _articles/README <<EOF +#INCLUDE:README# +EOF + echo "done." echo -n "Writing default css files... " (base64 -d | gunzip) > fugitive.css <<EOF #INCLUDE:fugitive.css# @@ -60,8 +65,8 @@ EOF git add _templates/* fugitive.css print.css >/dev/null git commit -m "fugitive inital import" >/dev/null echo "done." - echo -n "Preventing git to track temp files... " - echo "*~" > .git/info/exclude + echo -n "Preventing git to track temporary and generated files... " + echo "*~\nindex.html\narchives.html" > .git/info/exclude echo "done." cd - >/dev/null echo "Installation complete, please see the README file for an howto." |