]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/all/config.subr
Change the messages to mention gitlab.
[xonotic/xonotic.git] / misc / tools / all / config.subr
1 devsite_url="http://dev.xonotic.org/"
2 gitsite_url="http://gitlab.com/groups/xonotic/"
3
4 allrepos()
5 {
6         "$@" .                             xonotic.git                  master         ""
7         "$@" data/xonotic-data.pk3dir      xonotic-data.pk3dir.git      master         ""
8         "$@" data/xonotic-music.pk3dir     xonotic-music.pk3dir.git     master         ""
9         "$@" data/xonotic-nexcompat.pk3dir xonotic-nexcompat.pk3dir.git master         "no"
10         "$@" darkplaces                    darkplaces.git               div0-stable    "svn"
11         "$@" netradiant                    netradiant.git               master         ""
12         "$@" div0-gittools                 div0-gittools.git            master         "no"
13         "$@" d0_blind_id                   d0_blind_id.git              master         ""
14         "$@" data/xonotic-maps.pk3dir      xonotic-maps.pk3dir.git      master         ""
15         "$@" mediasource                   mediasource.git              master         "no"
16         "$@" gmqcc                         gmqcc.git                    master         ""
17         "$@" xonstat                       xonstat.git                  master         "no"
18         "$@" xonstatdb                     xonstatdb.git                master         "no"
19 }
20
21 allmirrors()
22 {
23         # Legacy git URLs.
24         "$@" git  ''   git://git.xonotic.org/xonotic/      ''
25         "$@" http ''   http://git.xonotic.org/xonotic/     ''
26         "$@" ssh  ''   ssh://xonotic@git.xonotic.org/      ''
27         "$@" git  ''   git://nl.git.xonotic.org/xonotic/   ''
28         "$@" http ''   http://nl.git.xonotic.org/xonotic/  ''
29         "$@" git  ''   git://us.git.xonotic.org/xonotic/   ''
30         "$@" http ''   http://us.git.xonotic.org/xonotic/  ''
31
32         # Gitlab host (divVerent).
33         # Disabled because of https://gitlab.com/gitlab-com/support-forum/issues/15
34         "$@" http ''   https://gitlab.com/xonotic/         ''
35
36         # German host (divVerent).
37         "$@" git  de   git://de.git.xonotic.org/xonotic/   ''
38         "$@" http de   http://de.git.xonotic.org/xonotic/  ''
39
40         # Pushing destination (authoritative server; merlijn).
41         "$@" ssh  push ssh://git@gitlab.com/xonotic/       ''
42 }
43
44 have_time=true
45 measure_time()
46 {
47         if $have_time; then
48                 time -p "$@"
49         else
50                 "$@"
51         fi
52 }
53 if { measure_time sh -c 'true'; } 2>&1 >/dev/null | grep '^user ' >/dev/null; then
54         msg "Timing via the time utility works."
55 else
56         have_time=false
57         msg "Timing not supported."
58 fi