summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <pablo@rauzy.name>2010-07-24 04:27:49 +0200
committerp4bl0 <pablo@rauzy.name>2010-07-24 04:27:49 +0200
commit0e6bff66ecfdd263d182877f624ed996fc08503f (patch)
treef760a6d733b0bd07f1888c97b9e90fb5996c5322
parent56ffeedf9dba6d5f3d32297560359cb3e6c5e27c (diff)
README is now the first article on fresh install
-rwxr-xr-xbuild.sh2
-rw-r--r--install.sh9
2 files changed, 8 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 5a75cfe..1f3e40d 100755
--- a/build.sh
+++ b/build.sh
@@ -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
diff --git a/install.sh b/install.sh
index 4320f7e..8505ef9 100644
--- a/install.sh
+++ b/install.sh
@@ -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."