mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Improved documentation; small code adjustments.
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b994b534c5
commit
9cae783703
1 changed files with 9 additions and 2 deletions
|
@ -2,13 +2,19 @@
|
||||||
|
|
||||||
# $1 - version string
|
# $1 - version string
|
||||||
# options:
|
# options:
|
||||||
# -c colored grep
|
# -c colored grep (implies -d)
|
||||||
# -d debug
|
# -d debug
|
||||||
# -r release (exit status error; when called from Makefile)
|
# -r release (exit status error; when called from Makefile)
|
||||||
|
|
||||||
|
# To validate relevant files are up to date, you would run the script
|
||||||
|
# from command line before tagging:
|
||||||
|
#
|
||||||
|
# $ scripts/check-version -cr <tag>
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
|
# You would typically add/remove files to/from the list
|
||||||
files="Documentation/user-manual.txt Makefile README ReleaseNotes.txt"
|
files="Documentation/user-manual.txt Makefile README ReleaseNotes.txt"
|
||||||
|
|
||||||
whine() {
|
whine() {
|
||||||
|
@ -50,6 +56,7 @@ fi
|
||||||
[ $color = n ] || opts="${opts:+$opts }--color"
|
[ $color = n ] || opts="${opts:+$opts }--color"
|
||||||
|
|
||||||
v=${1:-}
|
v=${1:-}
|
||||||
|
v=${v#v}
|
||||||
case $v in
|
case $v in
|
||||||
*-*)
|
*-*)
|
||||||
# Ignore development versions
|
# Ignore development versions
|
||||||
|
@ -63,6 +70,7 @@ case $v in
|
||||||
croak "invalid version string '$v'"
|
croak "invalid version string '$v'"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
whine "checking for version $v"
|
||||||
|
|
||||||
saveIFS=$IFS
|
saveIFS=$IFS
|
||||||
IFS=.
|
IFS=.
|
||||||
|
@ -75,7 +83,6 @@ while [ $# -gt 0 ]; do
|
||||||
done
|
done
|
||||||
|
|
||||||
sts=0
|
sts=0
|
||||||
whine "checking for version $v"
|
|
||||||
for f in $files; do
|
for f in $files; do
|
||||||
grep -EH $opts \
|
grep -EH $opts \
|
||||||
-e "(VERSION=|[Ss]ubsurface[[:blank:]]+)?\<v?$v[.0-9]*\>" \
|
-e "(VERSION=|[Ss]ubsurface[[:blank:]]+)?\<v?$v[.0-9]*\>" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue