From 9f045b99076fa30cb5a2eee08e3d9faf4d075af3 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 21 Nov 2022 19:45:42 +0100 Subject: Fix cd and small makefile change --- Makefile | 4 +++- post-receive-stagit | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a226e5e..1855016 100644 --- 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 index bad3b68..ac4f1e3 100755 --- 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" -- cgit v1.3