]> git.decadent.org.uk Git - exar-uart-driver.git/commitdiff
Compatibility with dpkg-dev < 1.17.21
authorStefano Rivera <stefanor@debian.org>
Fri, 11 Sep 2015 01:02:15 +0000 (18:02 -0700)
committerStefano Rivera <stefanor@debian.org>
Fri, 11 Sep 2015 01:02:15 +0000 (18:02 -0700)
debian/install

index 19ed01f2c554b31175e9cbdc1e040e8e201676f7..c4272c80454ae47064fceef7c5baa33a7f19b06e 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -eu
 
-VERSION=$(dpkg-parsechangelog -S Version | cut -d- -f 1)
+VERSION=$(dpkg-parsechangelog | sed -rne 's,^Version: (.+)-.*,\1,p')
 SRC=/usr/src/vizzini-$VERSION
 
 cat <<EOF