Skip to content

Commit b0c7dfb

Browse files
committed
Use standard tools
1 parent aea651b commit b0c7dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PREFIX = /usr
77
BINDIR = $(PREFIX)/bin
88

99
# Extract version from debian/changelog
10-
VERSION := $(shell head -1 debian/changelog | sed -n 's/.*(\([0-9][0-9.]*\)[^)]*).*/\1/p')
10+
VERSION := $(shell dpkg-parsechangelog -S Version 2>/dev/null || echo "unknown")
1111
CPPFLAGS += -DVERSION='"$(VERSION)"'
1212

1313
# Coverage flags (set COVERAGE=1 to enable)

0 commit comments

Comments
 (0)