diff options
author | p4bl0 <pablo@rauzy.name> | 2010-08-08 19:46:29 +0200 |
---|---|---|
committer | p4bl0 <pablo@rauzy.name> | 2010-08-08 19:46:29 +0200 |
commit | 18f54a6df31ba47100b98ceb8aef66c967c618c9 (patch) | |
tree | 0036f432dcbbd47026ae68421a590642f63e651a /build.sh | |
parent | c661fda93d737e0b919fd40dcace5ca46bb937a2 (diff) |
fixed little bug (sh doesn't know about &> redirection)
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ include_file() { f=`echo -n $2 | sed 's/\//\\\\\//g'` - tmp=`tempfile -p "figitive"` + tmp=`mktemp --suffix "-fugitive"` cat "$2" | gzip | base64 > "$tmp" cat "$1" | sed "/#INCLUDE:$f#/ { r $tmp @@ -12,7 +12,7 @@ include_file() { cp install.sh tmp1 i=1 -for f in README post-commit.sh post-receive.sh html-gen.sh default-files/*; do +for f in README *-*.sh default-files/*; do j=$((1 - i)) include_file tmp$i "$f" > tmp$j i=$j |