File: check_versions

package info (click to toggle)
libept 1.2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,672 kB
  • sloc: cpp: 5,627; sh: 62; makefile: 17
file content (16 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

DEB_VERSION=$(head -1 debian/changelog | sed -re 's/[^(]+\(([^)]+)\).+/\1/')
DEB_UPSTREAM_VERSION=$(echo $DEB_VERSION | sed -r 's/-.+//')
CMAKE_VERSION=$(grep '^set( *EPT_VERSION' CMakeLists.txt |sed -r 's/.+"([^"]+)".+/\1/')

if [ "$DEB_UPSTREAM_VERSION" != "$CMAKE_VERSION" ]
then
	echo "Version mismatch between ($DEB_UPSTREAM_VERSION) and CMakeLists.txt ($CMAKE_VERSION)" >&2
	exit 1
fi

#echo $DEB_VERSION
#echo $CMAKE_VERSION

exit 0