Quick script to check version number used in docs

This commit is contained in:
Brandon Rhodes 2024-02-13 09:09:03 -05:00
parent a2da14bfc6
commit 4a1fc4da66
1 changed files with 15 additions and 0 deletions

15
Tools/check-version.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
#
# Print all of the embedded version numbers in XEphem's code and
# documentation, so the reader can see whether they match. Particularly
# useful when doing a release.
set -e
cd "$(readlink -f $(dirname "${BASH_SOURCE[0]}"))"
cd ..
for s in archive/refs/tags 'tar xfz' 'cd xephem'
do
grep -H "$s" INSTALL
done
grep -H PATCHLEVEL GUI/xephem/patchlevel.c
grep -H '^Version' xephem.spec