File: vercheck

package info (click to toggle)
debtags 2.1.5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 960 kB
  • sloc: python: 479; sh: 67; makefile: 34
file content (12 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
VERSION_DEBTAGS=$(sed -nre 's/^VERSION = "([^"]+)"/\1/p' debtags)
VERSION_DEB=`head -n 1 debian/changelog  | sed -re 's/.+\(([^)]+).+/\1/'`
VERSION="$VERSION_DEBTAGS"

if [ "$VERSION_DEBTAGS" != "$VERSION_DEB" ]
then
	echo "Version mismatch between debtags ($VERSION_DEBTAGS) and debian/changelog ($VERSION_DEB)" >&2
	exit 1
fi

exit 0