diff options
author | p4bl0 <pablo@rauzy.name> | 2010-07-24 04:27:49 +0200 |
---|---|---|
committer | p4bl0 <pablo@rauzy.name> | 2010-07-24 04:27:49 +0200 |
commit | 0e6bff66ecfdd263d182877f624ed996fc08503f (patch) | |
tree | f760a6d733b0bd07f1888c97b9e90fb5996c5322 | |
parent | 56ffeedf9dba6d5f3d32297560359cb3e6c5e27c (diff) |
README is now the first article on fresh install
-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." |