diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rwxr-xr-x | post-receive-stagit | 1 |
2 files changed, 4 insertions, 1 deletions
| @@ -1,3 +1,5 @@ | |||
| 1 | all: updateall index | ||
| 2 | |||
| 1 | push: | 3 | push: |
| 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 | |||
| 12 | clean: | 14 | clean: |
| 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" |
