X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=misc%2Ftools%2Fall%2Fconfig.subr;h=00d311d4ee44ca4e4a46b4b15d23d446c1a167bd;hb=d03c35e29004799d837fbd3d25953d4eb7a5917a;hp=0114af27b6d7be206466e26b0c5134a5339ef75b;hpb=fd313797e4b3fb8ced8f13ad4a42413b7e47e803;p=xonotic%2Fxonotic.git diff --git a/misc/tools/all/config.subr b/misc/tools/all/config.subr index 0114af27..00d311d4 100644 --- a/misc/tools/all/config.subr +++ b/misc/tools/all/config.subr @@ -1,4 +1,5 @@ devsite_url="http://dev.xonotic.org/" +gitsite_url="http://gitlab.com/groups/xonotic/" allrepos() { @@ -12,25 +13,47 @@ allrepos() "$@" d0_blind_id d0_blind_id.git master "" "$@" data/xonotic-maps.pk3dir xonotic-maps.pk3dir.git master "" "$@" mediasource mediasource.git master "no" - "$@" fteqcc fteqcc.git xonotic-stable "noautocrlf" + "$@" gmqcc gmqcc.git master "" "$@" xonstat xonstat.git master "no" "$@" xonstatdb xonstatdb.git master "no" + "$@" wiki xonotic.wiki.git master "no" } allmirrors() { + # Legacy git URLs. "$@" git '' git://git.xonotic.org/xonotic/ '' "$@" http '' http://git.xonotic.org/xonotic/ '' "$@" ssh '' ssh://xonotic@git.xonotic.org/ '' + "$@" git '' git://nl.git.xonotic.org/xonotic/ '' + "$@" http '' http://nl.git.xonotic.org/xonotic/ '' + "$@" git '' git://us.git.xonotic.org/xonotic/ '' + "$@" http '' http://us.git.xonotic.org/xonotic/ '' - "$@" git us git://us.git.xonotic.org/xonotic/ '' - "$@" http us http://us.git.xonotic.org/xonotic/ '' + # Gitlab host (divVerent). + # Disabled because of https://gitlab.com/gitlab-com/support-forum/issues/15 + "$@" http '' https://gitlab.com/xonotic/ '' + # German host (divVerent). "$@" git de git://de.git.xonotic.org/xonotic/ '' "$@" http de http://de.git.xonotic.org/xonotic/ '' - "$@" git nl git://nl.git.xonotic.org/xonotic/ '*2' - "$@" http nl http://nl.git.xonotic.org/xonotic/ '*2' + # Pushing destination (authoritative server; merlijn). + "$@" ssh push ssh://git@gitlab.com/xonotic/ '' +} - "$@" ssh push ssh://xonotic@push.git.xonotic.org/ '' +have_time=true +measure_time() +{ + if $have_time; then + time -p "$@" + else + "$@" + fi } +if { measure_time sh -c 'true'; } 2>&1 >/dev/null | grep '^user ' >/dev/null; then + msg "Timing via the time utility works." +else + have_time=false + msg "Timing not supported." +fi