File: version.sh

package info (click to toggle)
knxd 0.14.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,644 kB
  • sloc: cpp: 21,518; ansic: 4,859; pascal: 3,728; makefile: 514; sh: 253; ruby: 132; java: 65; python: 40; xml: 15
file content (8 lines) | stat: -rwxr-xr-x 272 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh
sed -ne '1s/.*(\(.*\)).*/\1/' -e '1s/-1$//' -e '1p' debian/changelog | tr -d "\n"
test -d .git || exit
git=$(git rev-parse --short HEAD)
lgit=$(git rev-parse --short $(git rev-list -1 HEAD debian/changelog) )
if test "$git" != "$lgit" ; then
	echo -n ":$git"
fi