| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. $# -eq 0 ]; then |
| 4 | tag="`python setup.py --version`" |
| 5 | commit="$tag"~ |
| 6 | elif [scip-shell system . . `[`. $# -eq 1 ]; then |
| 7 | commit="$1" |
| 8 | else |
| 9 | echoscip-shell system . . echo. "Usage: $0 [commit]" >&2 |
| 10 | exit 1 |
| 11 | fi && |
| 12 | |
| 13 | . `dirnamescip-shell system . . dirname. $0`/split_tag.sh && |
| 14 | split_tag $commit |
| 15 | |
| 16 | if [scip-shell system . . `[`. $micro -eq 0 -a \( $state = final -o $state = post \) ] && |
| 17 | gitscip-shell system . . git. branch --merged master | grepscip-shell system . . grep. -Fqw maint; then |
| 18 | gitscip-shell system . . git. checkout maint && |
| 19 | gitscip-shell system . . git. merge --ff-only master && |
| 20 | gitscip-shell system . . git. checkout master |
| 21 | else: |
| 22 | gitscip-shell system . . git. checkout master && |
| 23 | gitscip-shell system . . git. merge --ff-only maint || |
| 24 | gitscip-shell system . . git. merge --strategy=ours -m 'Null-merge branch "maint"' maint |
| 25 | fi && |
| 26 | |
| 27 | gitscip-shell system . . git. checkout $commit ANNOUNCE.rst && |
| 28 | |
| 29 | `gitscip-shell system . . git. var GIT_EDITOR` ANNOUNCE.rst LATEST-CHANGES.rst docs/news.rst Cheetah/Version.py README.rst setup.cfg SetupConfig.py && |
| 30 | exec git commit --message="Build: Prepare for the next release" --message="[skip ci]" ANNOUNCE.rst LATEST-CHANGES.rst docs/news.rst Cheetah/Version.py README.rst setup.cfg SetupConfig.py |