1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:39:43 +00:00

test if version.py and manpage differ

This commit is contained in:
deadc0de6
2023-01-25 21:20:07 +01:00
parent 76565a54d3
commit 7d4fc80402

9
tests.sh vendored
View File

@@ -16,6 +16,15 @@ if ! ${rl} "${0}" >/dev/null 2>&1; then
fi
cur=`dirname $(${rl} "${0}")`
# make sure both version.py and manpage dotdrop.1 are in sync
dotdrop_version=$(grep version dotdrop/version.py | sed 's/^.*= .\(.*\).$/\1/g')
man_version=$(grep '^\.TH' manpage/dotdrop.1 | sed 's/^.*"dotdrop-\(.*\)\" "Save your.*$/\1/g')
if [ "${dotdrop_version}" != "${man_version}" ]; then
echo "ERROR version.py (${dotdrop_version}) and manpage (${man_version}) differ!"
exit 1
fi
echo "current version ${dotdrop_version}"
# test syntax
echo "checking syntax..."
${cur}/test-syntax.sh