1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-06-25 03:25:27 +02:00

README is now the first article on fresh install

This commit is contained in:
p4bl0 2010-07-24 04:27:49 +02:00
parent 56ffeedf9d
commit 0e6bff66ec
2 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -45,6 +45,11 @@ fugitive_install() {
EOF
fugitive_write_template > _templates/archives.html <<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... "
@ -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."