Introduction
Introduction Statistics Contact Development Disclaimer Help
tcreate-repo.sh - stagit - [fork] customized build of stagit, the static git pa…
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
tcreate-repo.sh (728B)
---
1 #!/bin/sh
2 set -eu
3
4 # configuration
5 repodir="$HOME"
6 default_owner="Anders Damsgaard"
7 giturl="git://src.adamsgaard.dk"
8 altgiturl="https://src.adamsgaard.dk"
9
10 [ $# -lt 1 ] && (echo "usage: $0 repo_name" && exit 1)
11
12 curdir="$(pwd)"
13 cd "$repodir"
14 for r in "$@"; do
15 git init --bare "$r"
16 printf 'description for %s: ' "$r"
17 read
18 echo "$REPLY" > "$r"/description
19 printf "owner [$default_owner]: "
20 read
21 echo "${REPLY:-$default_owner}" > "$r"/owner
22 ln -sf ../../post-receive.sh "$r"/hooks/post-receive
23 cd "/var/www/domains/src.adamsgaard.dk"
24 git clone --bare "$r" "${r}.git"
25 git update-server-info
26 echo "${giturl}/${r}" > "$r"/url
27 echo "${altgiturl}/${r}.git" > "$r"/alturl
28 touch "$r"/git-daemon-export-ok
29 done
30
31 cd "$curdir"
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.