summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorLeif Walsh <leif@tokutek.com>2011-07-24 20:27:07 +0200
committerp4bl0 <r@uzy.me>2011-07-24 20:27:07 +0200
commit006260555956124bf11997e59dca4ee9e1351841 (patch)
tree01af8c9e79c01337bea33f3c3ca1fd2de996f5e2 /build.sh
parent31dffefdd3e1b721296283120fa5ae9c2273e4fc (diff)
Changing mktemp calls and some two sed calls to make it work with BSD coreutils (and still GNU coreutils valid)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 854aeb6..172c086 100755
--- a/build.sh
+++ b/build.sh
@@ -2,11 +2,12 @@
include_file() {
f=`echo -n $2 | sed 's/\//\\\\\//g'`
- tmp=`mktemp`
+ tmp=`mktemp fugitiveXXXXXX`
cat "$2" | gzip | base64 > "$tmp"
cat "$1" | sed "/#INCLUDE:$f#/ {
r $tmp
- d }"
+ d
+ }"
rm "$tmp"
}