aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/update-submodules
blob: e5e8e0d4d48a296286e6e6e226a4e702138a8f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"


die()
{
	echo "$*" >&2
	exit 1
}

echo "Updating git submodules..."
cd "$basedir/.." || die "Failed to cd to basedir"
git submodule update --init --recursive || die "git submodule update failed"

exit 0
bues.ch cgit interface