dosbox-x/merge-dev-to-master.sh
Jookia b3fa848f0f Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
2022-12-12 17:52:27 +08:00

24 lines
628 B
Bash
Executable File

#!/usr/bin/env bash
curbranch=`git branch | grep \* | cut -d ' ' -f 2`
if [[ x"$curbranch" == x"master" || x"$curbranch" == x"develop" ]]; then
rm -f include/build_timestamp.h
git checkout include/build_timestamp.h
git checkout develop
git pull
git push
rm -f include/build_timestamp.h
git checkout include/build_timestamp.h
git checkout master
git pull
git push
rm -f include/build_timestamp.h
git checkout include/build_timestamp.h
git checkout master && git merge develop && git checkout develop && git merge master && git fetch --all && git push --all && make -j
fi