26 lines
744 B
Bash
Executable File
26 lines
744 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#General modules should be set to their versions
|
|
git reset --hard
|
|
git submodule foreach -q --recursive 'git reset --hard'
|
|
git submodule update --init --recursive --force
|
|
#git submodule update --init --remote --recursive --force TeaSpeak
|
|
|
|
#The libs have no need to be attach to the master :)
|
|
cd TeaSpeak
|
|
echo "Resetting TeaSpeak submodule"
|
|
git reset --hard origin/head
|
|
git pull origin master
|
|
|
|
cd ..
|
|
git submodule update --init --remote --recursive --force
|
|
git submodule foreach -q --recursive '
|
|
echo "Updating $name";
|
|
BRANCH=$(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)
|
|
if [ -z ${BRANCH} ]; then
|
|
BRANCH="master"
|
|
fi
|
|
git checkout ${BRANCH};
|
|
echo "git pull origin ${BRANCH}"
|
|
git pull origin ${BRANCH}'
|