[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Run debchange in the bdist_debian target to update vers...



Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv15766

Modified Files:
	Makefile 
Log Message:
Run debchange in the bdist_debian target to update version.  Also note that I did the packageing in debian/copyright.

Index: Makefile
===================================================================
RCS file: /home/minion/cvsroot/src/minion/Makefile,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- Makefile	14 Dec 2003 03:25:24 -0000	1.60
+++ Makefile	19 Dec 2003 01:13:32 -0000	1.61
@@ -173,10 +173,18 @@
 # Packaging related targets
 
 # create a Debian package
-# requires you installed at least build-essential, fakeroot, and
-# whatever is listed as Build-Depends: in debian/control.
+# requires you installed at least build-essential, devscripts,
+# fakeroot, and whatever is listed as Build-Depends: in debian/control.
 bdist_debian:
-	dpkg-buildpackage -rfakeroot -uc -us
+	if [ -e debian/changelog.shipped ]; then mv debian/changelog.shipped debian/changelog; fi
+	cp debian/changelog debian/changelog.shipped
+	VERSION=`grep '^VERSION = ' setup.py | sed -e "s/.*'\(.*\)'.*/\1/"`; \
+	debchange \
+		--newversion $$VERSION'-0.custom'\
+		--distribution unofficial \
+		--preserve \
+		'Build unofficial debian package.'
+	#dpkg-buildpackage -rfakeroot -uc -us
 
 #======================================================================
 # OpenSSL-related targets