Skip to content

Commit 7d4fc80

Browse files
committed
test if version.py and manpage differ
1 parent 76565a5 commit 7d4fc80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ if ! ${rl} "${0}" >/dev/null 2>&1; then
1616
fi
1717
cur=`dirname $(${rl} "${0}")`
1818

19+
# make sure both version.py and manpage dotdrop.1 are in sync
20+
dotdrop_version=$(grep version dotdrop/version.py | sed 's/^.*= .\(.*\).$/\1/g')
21+
man_version=$(grep '^\.TH' manpage/dotdrop.1 | sed 's/^.*"dotdrop-\(.*\)\" "Save your.*$/\1/g')
22+
if [ "${dotdrop_version}" != "${man_version}" ]; then
23+
echo "ERROR version.py (${dotdrop_version}) and manpage (${man_version}) differ!"
24+
exit 1
25+
fi
26+
echo "current version ${dotdrop_version}"
27+
1928
# test syntax
2029
echo "checking syntax..."
2130
${cur}/test-syntax.sh

0 commit comments

Comments
 (0)