[Nice-commit] Nice/distrib Makefile,1.17,1.18
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-06-06 16:29:59
|
Update of /cvsroot/nice/Nice/distrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6487/distrib Modified Files: Makefile Log Message: Check that upstream and debian versions are the same before building the debian package. Index: Makefile =================================================================== RCS file: /cvsroot/nice/Nice/distrib/Makefile,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Makefile 26 Jun 2004 10:41:20 -0000 1.17 --- Makefile 6 Jun 2005 16:29:51 -0000 1.18 *************** *** 1,5 **** # Get the version from the debian changelog. FULL_DEB_VERSION = ${shell expr "`head -1 ../debian/changelog`" : '.*(\(.*\))'} ! VERSION = ${shell expr "$(FULL_DEB_VERSION)" : '\(.*\)-[^-]*'} DEBIAN_REVISION = ${shell expr "$(FULL_DEB_VERSION)" : '.*-\([^-]*\)'} --- 1,7 ---- + VERSION = ${shell expr "`head -1 ../NEWS`" : '.*(\(.*\))'} + # Get the version from the debian changelog. FULL_DEB_VERSION = ${shell expr "`head -1 ../debian/changelog`" : '.*(\(.*\))'} ! DEB_VERSION = ${shell expr "$(FULL_DEB_VERSION)" : '\(.*\)-[^-]*'} DEBIAN_REVISION = ${shell expr "$(FULL_DEB_VERSION)" : '.*-\([^-]*\)'} *************** *** 30,33 **** --- 32,38 ---- deb $(DEB): + @[ $(VERSION) ] || ( echo "No version in NEWS file"; false ) + @[ $(VERSION) = "$(DEB_VERSION)" ] ||\ + (echo "Upstream and Debian versions not matching"; false ) @echo Creating Debian package version ${VERSION} rm -rf $(BUILDROOT) $(BUILDROOT).orig |