[Fusionforge-commits] r14176 - trunk

Olivier Berger olberger at fusionforge.org
Mon Aug 22 14:23:51 CEST 2011


Author: olberger
Date: 2011-08-22 14:23:51 +0200 (Mon, 22 Aug 2011)
New Revision: 14176

Modified:
   trunk/Makefile.debian
Log:
Use dpkg-parsechangelog to render MAJOR construction less error-prone

Modified: trunk/Makefile.debian
===================================================================
--- trunk/Makefile.debian	2011-08-22 11:49:39 UTC (rev 14175)
+++ trunk/Makefile.debian	2011-08-22 12:23:51 UTC (rev 14176)
@@ -83,7 +83,7 @@
 ASKPASS=--ask-passphrase
 ASKPASS=
 
-MAJOR=$(shell head -1 $(PKGDIR)/debian/changelog | sed 's/.*(\(.*\)-[^-]*).*/\1/')
+MAJOR=$(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
 # SMAJOR is MAJOR without epoch if any
 SMAJOR=$(shell echo $(MAJOR) | sed 's/^.://')
 




More information about the Fusionforge-commits mailing list