From 566138139dbb4b9826917226f2c83caeb4f20232 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Fri, 23 Jul 2010 11:48:56 +0200 Subject: wrote build script + fixed bugs installation bugs --- build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..50d45ee --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/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 +for f in archives.html article.html fugitive.css 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 -- cgit v1.2.3