1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-06-30 21:25:26 +02:00
fugitive/build.sh

24 lines
407 B
Bash
Raw Normal View History

#!/bin/bash
include_file() {
tmp=`tempfile -p "figitive"`
cat "$2" | gzip | base64 > "$tmp"
cat "$1" | sed "/#INCLUDE:$2#/ {
r $tmp
d }"
rm "$tmp"
}
cp install.sh tmp1
i=1
2010-07-24 03:43:33 +02:00
for f in archives.html article.html \
fugitive.css print.css README \
2010-07-24 03:43:33 +02:00
post-commit.sh post-receive.sh; do
j=$((1 - i))
include_file tmp$i $f > tmp$j
i=$j
done
cp tmp$j fugitive
chmod +x fugitive
rm tmp0 tmp1