55#  You may want to run "make release" instead of running this script directly.
66
77set  -eEfuo pipefail
8- trap  ' printf "%s : Check failed. Stopping.\n" "$0 " >&2' 
8+ trap  ' echo "$0 : Check failed. Stopping." >&2' 
99
1010readonly  version_path=' VERSION' 
1111readonly  changes_path=' doc/source/changes.rst' 
1212
13- printf  ' Checking current directory.\n ' 
13+ echo  ' Checking current directory.' 
1414test  " $( cd -- " $( dirname -- " $0 " ) " &&  pwd) " " $( pwd) " #  Ugly, but portable.
1515
16- printf  ' Checking that %s and %s exist and have no uncommitted changes.\n' 
17-     " $version_path " " $changes_path " 
16+ echo  " Checking that $version_path  and $changes_path  exist and have no uncommitted changes." 
1817test  -f " $version_path " 
1918test  -f " $changes_path " 
2019git status -s -- " $version_path " " $changes_path " 
2120test  -z " $( git status -s -- " $version_path " " $changes_path " ) " 
2221
2322#  This section can be commented out, if absolutely necessary.
24- printf  ' Checking that ALL changes are committed.\n ' 
23+ echo  ' Checking that ALL changes are committed.' 
2524git status -s --ignore-submodules
2625test  -z " $( git status -s --ignore-submodules) " 
2726
28- printf  ' Gathering current version, latest tag, and current HEAD commit info.\n ' 
27+ echo  ' Gathering current version, latest tag, and current HEAD commit info.' 
2928version_version=" $( cat " $version_path " ) " 
3029changes_version=" $( awk ' /^[0-9]/ {print $0; exit}' " $changes_path " ) " 
3130config_opts=" $( printf '  -c versionsort.suffix=-%s' ) " 
@@ -44,4 +43,4 @@ printf '%-14s = %s\n' 'VERSION file'   "$version_version" \
4443test  " $version_version " " $changes_version " 
4544test  " $latest_tag " " $version_version " 
4645test  " $head_sha " " $latest_tag_sha " 
47- printf  ' OK, everything looks good.\n ' 
46+ echo  ' OK, everything looks good.' 
0 commit comments