1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/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
|