commit 9f045b99076fa30cb5a2eee08e3d9faf4d075af3
parent 8891c2c7a216c4cfadc0ed74cea4e4b2edc82da3
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Mon, 21 Nov 2022 19:45:42 +0100
Fix cd and small makefile change
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,3 +1,5 @@
+all: updateall index
+
push:
ssh git@tronto.net mkdir -p BIN FILES
scp post-receive-stagit git@tronto.net:BIN/
@@ -12,4 +14,4 @@ updateall: push
clean:
ssh git@tronto.net rm -r FILES/* BIN/*
-.PHONY: clean index push updateall
+.PHONY: all clean index push updateall
diff --git a/post-receive-stagit b/post-receive-stagit
@@ -19,6 +19,7 @@ genstagit() {
rm -rf "$htdir"
mkdir -p "$basedir"
cp -r "$repo" "$htdir"
+ cd "$htdir"
stagit -l 100 "$repo"
git show master:README.md > file/README.md
git archive HEAD --prefix="$name/" -o "$basedir/$name.zip"