1 devsite_url="http://dev.xonotic.org/"
2 pushsite_url="ssh://xonotic@push.git.xonotic.org/"
3 httppushsite_url="http://push.git.xonotic.org/login/xonotic/"
4 gitsite_url="git://git.xonotic.org/xonotic/"
5 httpsite_url="http://git.xonotic.org/xonotic/"
9 data/xonotic-data.pk3dir | | master |
10 data/xonotic-music.pk3dir | | master |
11 data/xonotic-nexcompat.pk3dir | | master | no
12 darkplaces | | div0-stable | svn
13 netradiant | | master |
14 div0-gittools | | master | no
15 d0_blind_id | | master |
16 data/xonotic-maps.pk3dir | | master |
17 mediasource | | master | no
18 fteqcc | | xonotic-stable | noautocrlf
20 # todo: in darkplaces, change repobranch to div0-stable
22 repos=`$ECHO "$repos_urls" | grep . | cut -d '|' -f 1 | tr -d ' '`
24 base=`git config remote.origin.url`
27 base=${base%xonotic.git}
30 $ECHO "The main repo is not xonotic.git, what have you done?"
34 pushbase=`git config remote.origin.pushurl || true`
37 pushbase=${pushbase%xonotic.git}
42 $ECHO "The main repo is not xonotic.git, what have you done?"
49 repo_t=`$ECHO "$repos_urls" | grep "^$1 " | cut -d '|' -f 2 | tr -d ' '`
50 if [ -n "$repo_t" ]; then
60 if [ x"$1" = x"." ]; then
61 $ECHO "$base""xonotic.git"
63 $ECHO "$base${1##*/}.git"
70 [ -n "$pushbase" ] || return 0
71 repo_t=`$ECHO "$repos_urls" | grep "^$1 " | cut -d '|' -f 2 | tr -d ' '`
72 if [ -n "$repo_t" ]; then
77 $ECHO "$pushbase$repo_t"
81 if [ x"$1" = x"." ]; then
82 $ECHO "$pushbase""xonotic.git"
84 $ECHO "$pushbase${1##*/}.git"
91 repo_t=`$ECHO "$repos_urls" | grep "^$1 " | cut -d '|' -f 3 | tr -d ' '`
92 if [ -n "$repo_t" ]; then
101 $ECHO "$repos_urls" | grep "^$1 " | cut -d '|' -f 4 | tr -d ' '
109 # if we have .no file, skip
110 if [ -f "$d.no" ]; then
111 msg "Repository $d disabled by a .no file, delete $d.no to enable"
114 # if .yes file exists, always keep it
115 if [ -f "$d.yes" ]; then
116 msg "Repository $d enabled by a .yes file"
120 # remove broken clones so they don't mess up stuff
121 if [ x"$d" != x"." ] && [ -d "$d" ] && ! [ -d "$d/.git" ]; then
122 msg "$d exists but has no .git subdir. Probably a broken clone. Deleting."
126 # if we have the dir, always keep it
128 msg "Repository $d enabled because it already exists"
132 # if we have matching pk3, skip
133 if [ x"$p" != x"$d" ] && [ -f "$p" ]; then
134 msg "Repository $d disabled by matching .pk3 file, delete $p or create $d.yes to enable"
137 # if "no" flag is set, skip
140 msg "Repository $d disabled by default, create $d.yes to enable"
145 msg "Repository $d enabled by default"