dosbox-x/merge-dev-to-master.sh
Robert de Rooy 694cc766a4 Cleanup Bash scripts.
This makes them pass shellcheck. Except for a few unused
export warnings.

I also wonder if the majority of these files should be
in the root of the project, or should be moved to "build-scripts"
(or should still even exist).

a few minor changes

one more minor changes
2023-04-15 15:53:08 +02:00

24 lines
616 B
Bash
Executable File

#!/usr/bin/env bash
curbranch=$(git branch --show-current)
if [[ "${curbranch}" == "master" || "${curbranch}" == "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