mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-09-28 14:25:26 +02:00
README is now the first article on fresh install
This commit is contained in:
parent
56ffeedf9d
commit
0e6bff66ec
2
build.sh
2
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
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue