summaryrefslogtreecommitdiff
path: root/post-commit.sh
diff options
context:
space:
mode:
authorp4bl0 <pablo@rauzy.name>2010-07-23 11:48:56 +0200
committerp4bl0 <pablo@rauzy.name>2010-07-23 11:48:56 +0200
commit566138139dbb4b9826917226f2c83caeb4f20232 (patch)
treea44489024025f278daa840945b068817c7f604a6 /post-commit.sh
parent627ac7472ad54b1240774dc9085ab005fbabc943 (diff)
wrote build script + fixed bugs installation bugs
Diffstat (limited to 'post-commit.sh')
-rw-r--r--post-commit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/post-commit.sh b/post-commit.sh
index c028f85..06f9a95 100644
--- a/post-commit.sh
+++ b/post-commit.sh
@@ -32,7 +32,6 @@ commit_slug=`git log -1 --format="%f"`
commit_body() {
tmp=`tempfile -p "fugitive"`
git log -1 --format="%b" > "$tmp"
- (sleep 5 && rm -f "$tmp") & # this message will self-destruct in 5s
echo "$tmp"
}
@@ -45,17 +44,18 @@ article_title() {
article_content() {
tmp=`tempfile -p "fugitive"`
tail -n+2 "$1" > "$tmp"
- (sleep 5 && rm -f "$tmp") & # this message will self-destruct in 5s
echo "$tmp"
}
replace_var_by_string() {
sed "s/<?fugitive\s\+$1\s*?>/$2/"
}
+# REMEMBER: 2nd arg should be a tempfile!
replace_var_by_file() {
sed "/<?fugitive\s\+$1\s*?>/ {
r $2
d }"
+ rm "$2"
}
replace_commit_info() {
replace_var_by_string "commit_Hash" "$commit_Hash" | \