File: vercheck

package info (click to toggle)
guessnet 0.55
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,060 kB
  • sloc: cpp: 5,344; sh: 1,402; makefile: 162; perl: 118
file content (15 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

VERSION_AUTOTOOLS=`head configure.ac |grep AC_INIT | sed -re 's/.+\[([0-9]+[^]]+)\].+/\1/'`
VERSION_DEB=`head -n 1 debian/changelog  | sed -re 's/.+\(([^-]+).+/\1/'`
VERSION_DEBFULL=`head -n 1 debian/changelog  | sed -re 's/.+\((.+)\).+/\1/'`
VERSION="$VERSION_SRC"

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

echo "$VERSION_AUTOTOOLS"
exit 0