2016-11-17 14:38:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-04-27 08:31:38 +00:00
|
|
|
THIS_RELEASE="2020.1"
|
|
|
|
NEXT_RELEASE="2020.2"
|
2017-05-21 20:20:31 +00:00
|
|
|
SUBMODULES="simgear flightgear fgdata getstart"
|
2016-11-17 14:38:09 +00:00
|
|
|
|
2017-02-20 17:51:44 +00:00
|
|
|
#:<< 'COMMENT_END'
|
2016-11-17 14:38:09 +00:00
|
|
|
git checkout next
|
|
|
|
git pull --rebase
|
|
|
|
|
|
|
|
$(dirname $0)/create-release-branch-for.sh "$THIS_RELEASE" "$NEXT_RELEASE" $SUBMODULES .
|
|
|
|
|
|
|
|
# use release branch for submodules
|
|
|
|
git checkout release/${THIS_RELEASE}
|
|
|
|
for f in $SUBMODULES; do
|
|
|
|
git config -f .gitmodules submodule.${f}.branch release/${THIS_RELEASE}
|
|
|
|
done
|
|
|
|
git add .gitmodules && echo "set correct release-branch for submodules" | git commit --file=-
|
|
|
|
|
|
|
|
# track submodule changes
|
|
|
|
git checkout next
|
|
|
|
git add $SUBMODULES && echo "track submodule changes for release" | git commit --file=-
|
2017-02-20 17:51:44 +00:00
|
|
|
#COMMENT_END
|
|
|
|
|
|
|
|
echo "Check this and submodules $SUBMODULES - hit <enter> to push or <ctrl-c> to cancel"
|
|
|
|
read something
|
2016-11-17 14:38:09 +00:00
|
|
|
|
|
|
|
for f in $SUBMODULES .; do
|
|
|
|
pushd "$f"
|
|
|
|
echo "Pushing $f"
|
2018-09-21 15:18:08 +00:00
|
|
|
git checkout release/${THIS_RELEASE} && git push origin release/${THIS_RELEASE} && git checkout next && git push
|
2016-11-17 14:38:09 +00:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
#this needs ~/.ssh/config to contain this
|
|
|
|
#HOST sf svn.code.sf.net
|
|
|
|
# HOSTNAME svn.code.sf.net
|
|
|
|
# IdentityFile ~/.ssh/your_sf_keyfile
|
|
|
|
# IdentitiesOnly yes
|
|
|
|
# User user_sf_username
|
|
|
|
|
2020-04-27 08:31:38 +00:00
|
|
|
#svn copy svn+ssh://svn.code.sf.net/p/flightgear/fgaddon/trunk \
|
|
|
|
# svn+ssh://svn.code.sf.net/p/flightgear/fgaddon/branches/release-${THIS_RELEASE} \
|
|
|
|
# -m "branching for release ${THIS_RELEASE}"
|