Modify kernel source rules version regex
authorFilippos Giannakos <philipgian@grnet.gr>
Thu, 18 Jul 2013 13:15:00 +0000 (16:15 +0300)
committerFilippos Giannakos <philipgian@grnet.gr>
Mon, 22 Jul 2013 11:17:18 +0000 (14:17 +0300)
debian/archipelago-modules-source-files/rules

index 5f4d0b8..6705822 100755 (executable)
@@ -16,9 +16,9 @@
 #     REV=$(KDREV)
 #endif
 
-export VERSION := $(shell head -n 1 debian/changelog | sed -r 's/.* \(([0-9](\.[1-9])+.*)-[0-9]+\) .*/\1/g')
+export VERSION := $(shell head -n 1 debian/changelog | sed -r 's/.* \(([0-9](\.[1-9])+.*)-[0-9]+.*\) .*/\1/g')
 export RAW_VERSION := $(shell echo $(VERSION) | sed 's/~//g')
-export PKG_VERSION := $(shell head -n 1 debian/changelog | sed -r 's/.* \(([0-9](\.[1-9])+.*-[0-9]+)\) .*/\1/g')
+export PKG_VERSION := $(shell head -n 1 debian/changelog | sed -r 's/.* \(([0-9](\.[1-9])+.*-[0-9]+.*)\) .*/\1/g')
 
 # determine fglrx-source package version and warn user if it doesn't match
 SRC_PKG_VERSION := $(shell dpkg -s archipelago-modules-source | grep '^Version:' | cut -d' ' -f2)