summaryrefslogtreecommitdiff
path: root/scripts/update.sh
blob: 5d1a9a2f5bdc09976853e59ad6367b02b54081bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

update()
{
	echo "git pull"
	git pull || return $?
	echo

	echo "make aggregate"
	make aggregate || return $?
	echo

	echo "make test"
	make test || return $?
	echo

	echo "make"
	make || return $?
	echo
}

cd /opt/swamid-metadata || exit 1
output=$(update 2>&1)
ret=$?
if [ "$ret" != "0" ] ; then
	echo "$output"
	exit $ret
fi