2018-08-01 14:31:44 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-28 13:07:55 -04:00
|
|
|
#General modules should be set to their versions
|
2019-07-17 13:53:08 -04:00
|
|
|
git reset --hard
|
2019-10-13 12:52:17 -04:00
|
|
|
#git submodule foreach -q --recursive 'git reset --hard'
|
|
|
|
#git submodule update --init --recursive --force
|
2019-07-17 13:53:08 -04:00
|
|
|
#git submodule update --init --remote --recursive --force TeaSpeak
|
2019-05-28 13:07:55 -04:00
|
|
|
|
2019-05-28 11:49:03 -04:00
|
|
|
cd TeaSpeak
|
2019-10-13 12:52:17 -04:00
|
|
|
echo "Building TeaSpeak at version $(git rev-parse HEAD)"
|
2019-07-18 16:10:46 -04:00
|
|
|
cd ..
|
2019-10-13 12:52:17 -04:00
|
|
|
|
2019-10-13 14:27:09 -04:00
|
|
|
echo "Updating submodules"
|
2019-10-13 15:59:43 -04:00
|
|
|
#git submodule update --init --recursive
|
|
|
|
git submodule update --init --checkout --recursive -f
|
2019-10-13 12:52:17 -04:00
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to update submodules. Aborting"
|
|
|
|
exit 1
|
|
|
|
}
|
2019-10-13 14:06:33 -04:00
|
|
|
exit 0
|