aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-11-21 19:45:42 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2022-11-21 19:45:42 +0100
commit9f045b99076fa30cb5a2eee08e3d9faf4d075af3 (patch)
treed79b02249f037af265ceb7c4274539f6fabbedb4
parent8891c2c7a216c4cfadc0ed74cea4e4b2edc82da3 (diff)
downloadgit-hooks-9f045b99076fa30cb5a2eee08e3d9faf4d075af3.tar.gz
git-hooks-9f045b99076fa30cb5a2eee08e3d9faf4d075af3.zip
Fix cd and small makefile change
Diffstat (limited to '')
-rw-r--r--Makefile4
-rwxr-xr-xpost-receive-stagit1
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a226e5e..1855016 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
1all: updateall index
2
1push: 3push:
2 ssh git@tronto.net mkdir -p BIN FILES 4 ssh git@tronto.net mkdir -p BIN FILES
3 scp post-receive-stagit git@tronto.net:BIN/ 5 scp post-receive-stagit git@tronto.net:BIN/
@@ -12,4 +14,4 @@ updateall: push
12clean: 14clean:
13 ssh git@tronto.net rm -r FILES/* BIN/* 15 ssh git@tronto.net rm -r FILES/* BIN/*
14 16
15.PHONY: clean index push updateall 17.PHONY: all clean index push updateall
diff --git a/post-receive-stagit b/post-receive-stagit
index bad3b68..ac4f1e3 100755
--- a/post-receive-stagit
+++ b/post-receive-stagit
@@ -19,6 +19,7 @@ genstagit() {
19 rm -rf "$htdir" 19 rm -rf "$htdir"
20 mkdir -p "$basedir" 20 mkdir -p "$basedir"
21 cp -r "$repo" "$htdir" 21 cp -r "$repo" "$htdir"
22 cd "$htdir"
22 stagit -l 100 "$repo" 23 stagit -l 100 "$repo"
23 git show master:README.md > file/README.md 24 git show master:README.md > file/README.md
24 git archive HEAD --prefix="$name/" -o "$basedir/$name.zip" 25 git archive HEAD --prefix="$name/" -o "$basedir/$name.zip"

Generated with cgit - Back to sebastiano.tronto.net