Debian Codegraph @

devscripts/prerelease

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 if [scip-shell system . . `[`. -z "$1" -o -n "$2" ]; then
4 echoscip-shell system . . echo. "Usage: $0 new_tag" >&2
5 exit 1
6 else
7 tag="$1"
8 fi
9
10 . `dirnamescip-shell system . . dirname. $0`/split_tag.sh &&
11 split_tag $tag
12
13 if [scip-shell system . . `[`. $micro -eq 0 -o \( "$state" != final -a "$state" != post \) ]; then
14 gitscip-shell system . . git. checkout master
15 else
16 gitscip-shell system . . git. checkout maint
17 fi &&
18
19 chth_tag="Cheetah Template $tag" &&
20 chth_tag_len=${#chth_tag} &&
21 sedscip-shell system . . sed. -Ei "1s/^Cheetah Template [1-9].+\$/$chth_tag/" README.rst &&
22 sedscip-shell system . . sed. -Ei "2s/^==========+\$/`python -c \"print('='*$chth_tag_len)\"`/" README.rst &&
23
24 if [scip-shell system . . `[`. "$state" = alpha ]; then
25 trove_cls='3 - Alpha'
26 elif [scip-shell system . . `[`. "$state" = beta -o "$state" = 'release candidate' ]; then
27 trove_cls='4 - Beta'
28 elif [scip-shell system . . `[`. "$state" = final -o "$state" = post ]; then
29 trove_cls='5 - Production\/Stable'
30 else
31 echoscip-shell system . . echo. "Error: unknown state $state" >&2
32 exit 1
33 fi &&
34 sedscip-shell system . . sed. -Ei "s/Development Status :: .+\$/Development Status :: $trove_cls/" SetupConfig.py &&
35
36 if [scip-shell system . . `[`. "$state" = final -o "$state" = post ]; then
37 ghr_prerelease=false
38 else
39 ghr_prerelease=true
40 fi &&
41 sedscip-shell system . . sed. -Ei "s/(^ +prerelease): .*\$/\1: $ghr_prerelease/" .github/workflows/test-publish.yaml &&
42
43 `gitscip-shell system . . git. var GIT_EDITOR` docs/news.rst ANNOUNCE.rst LATEST-CHANGES.rst Cheetah/Version.py README.rst setup.cfg SetupConfig.py &&
44 exec git commit --message="Release $tag" docs/news.rst ANNOUNCE.rst LATEST-CHANGES.rst Cheetah/Version.py README.rst setup.cfg SetupConfig.py .github/workflows/test-publish.yaml