aboutsummaryrefslogtreecommitdiff
path: root/post-receive-stagit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpost-receive-stagit11
1 files changed, 6 insertions, 5 deletions
diff --git a/post-receive-stagit b/post-receive-stagit
index 93107cd..9b3de8c 100755
--- a/post-receive-stagit
+++ b/post-receive-stagit
@@ -1,26 +1,27 @@
1#!/bin/sh 1#!/bin/sh
2 2
3yourname="Sebastiano Tronto
3repo="$PWD" 4repo="$PWD"
4name="$(basename $repo .git)" 5name="$(basename $repo .git)"
6baseurl="https://git.tronto.net"
5basedir="/var/www/htdocs/git.tronto.net" 7basedir="/var/www/htdocs/git.tronto.net"
6htdir="$basedir/$name" 8htdir="$basedir/$name"
7filesdir="/home/git/FILES" 9filesdir="/home/git/FILES"
8bindir="/home/git/BIN" 10bindir="/home/git/BIN"
9 11
10setupinfo() { 12setupinfo() {
11 echo "Sebastiano Tronto" > owner 13 echo "$yourname" > owner
12 echo "https://git.tronto.net/$name" > url 14 echo "$baseurl/$name" > url
15 git update-server-info
13} 16}
14 17
15genstagit() { 18genstagit() {
16 rm -rf "$htdir" 19 rm -rf "$htdir"
17 mkdir -p "$basedir" 20 mkdir -p "$basedir"
18 cp -r "$repo" "$htdir" 21 cp -r "$repo" "$htdir"
19 cd "$htdir" && \
20 git update-server-info && \
21 git archive HEAD --prefix="$name/" -o "$basedir/$name.zip"
22 stagit -l 100 "$repo" 22 stagit -l 100 "$repo"
23 git show master:README.md > file/README.md 23 git show master:README.md > file/README.md
24 git archive HEAD --prefix="$name/" -o "$basedir/$name.zip"
24} 25}
25 26
26cpindexfile() { 27cpindexfile() {

Generated with cgit - Back to sebastiano.tronto.net