Debian Emacs Devel Commit: rev 56 - emacs21/pkg/trunk/debian

Jerome Marant jerome@quantz.debian.org
Sat, 28 Feb 2004 18:45:12 +0100


Author: jerome
Date: 2004-02-28 18:45:11 +0100 (Sat, 28 Feb 2004)
New Revision: 56

Modified:
   emacs21/pkg/trunk/debian/build-binary-pkg
   emacs21/pkg/trunk/debian/changelog
   emacs21/pkg/trunk/debian/rules
Log:
Generate md5sums file for every package (#22590)

Modified: emacs21/pkg/trunk/debian/build-binary-pkg
===================================================================
--- emacs21/pkg/trunk/debian/build-binary-pkg	2004-02-28 14:27:03 UTC (rev 55)
+++ emacs21/pkg/trunk/debian/build-binary-pkg	2004-02-28 17:45:11 UTC (rev 56)
@@ -86,5 +86,11 @@
   `find debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
      -type f -perm +u=x`
 
+# Generate DEBIAN/md5sums file
+(cd debian/${pkgdir} && \
+ for dir in `ls | grep -v DEBIAN` ; do \
+   find "$dir" -type f | xargs md5sum >> DEBIAN/md5sums \
+ done)
+
 dpkg-gencontrol -isp -p${pkgname} -Pdebian/${pkgdir}
 dpkg --build debian/${pkgdir} ..

Modified: emacs21/pkg/trunk/debian/changelog
===================================================================
--- emacs21/pkg/trunk/debian/changelog	2004-02-28 14:27:03 UTC (rev 55)
+++ emacs21/pkg/trunk/debian/changelog	2004-02-28 17:45:11 UTC (rev 56)
@@ -78,10 +78,14 @@
     - debian/fix-debian-scripts: deleted - no longer used.
     - debian/build-binary-pkg: adjusted to handle more of the common code.
   
-  * Added support for linux 2.6 to ACPI in lisp/battery.el. Thanks to
+  * Add support for linux 2.6 to ACPI in lisp/battery.el. Thanks to
     Mario Lang <mlang@debian.org> [Jérôme Marant] (closes: #228658)
     - debian/patches/battery-acpi-support.dpatch: updated.
   
+  * Generate md5sums file for every package [Jérôme Marant] (closes: #22590)
+    - debian/rules: generate md5sums file just before building packages.
+    - build-bin-pkg: likewise.
+  
  -- Rob Browning <rlb@defaultvalue.org>  Thu, 26 Feb 2004 12:13:50 -0600
 
 emacs21 (21.3+1-4) unstable; urgency=medium

Modified: emacs21/pkg/trunk/debian/rules
===================================================================
--- emacs21/pkg/trunk/debian/rules	2004-02-28 14:27:03 UTC (rev 55)
+++ emacs21/pkg/trunk/debian/rules	2004-02-28 17:45:11 UTC (rev 56)
@@ -505,6 +505,12 @@
 	  \
 	  debian/pkg-el/DEBIAN/prerm
 
+	# Generate DEBIAN/md5sums file
+	cd debian/pkg-el && \
+	for dir in `ls | grep -v DEBIAN` ; do \
+	  find "$dir" -type f | xargs md5sum >> DEBIAN/md5sums ; \
+	done
+
 	dpkg-gencontrol -isp -pemacs${major_ver}-el -Pdebian/pkg-el
 	dpkg --build debian/pkg-el ..
 
@@ -617,6 +623,12 @@
 	  debian/pkg-common/DEBIAN/postinst \
 	  debian/pkg-common/DEBIAN/prerm
 
+	# Generate DEBIAN/md5sums file
+	cd debian/pkg-common && \
+	for dir in `ls | grep -v DEBIAN` ; do \
+	  find "$dir" -type f | xargs md5sum >> DEBIAN/md5sums ; \
+	done
+
 	dpkg-gencontrol -isp -pemacs${major_ver}-common -Pdebian/pkg-common
 	dpkg --build debian/pkg-common ..
 
@@ -750,6 +762,12 @@
 	chgrp mail debian/pkg-bin-common/${movemail_bin}
 	chmod g+s debian/pkg-bin-common/${movemail_bin}
 
+	# Generate DEBIAN/md5sums file
+	cd debian/pkg-bin-common && \
+	for dir in `ls | grep -v DEBIAN` ; do \
+	  find "$dir" -type f | xargs md5sum >> DEBIAN/md5sums ; \
+	done
+
 	dpkg-gencontrol -isp \
 	  -pemacs${major_ver}-bin-common -Pdebian/pkg-bin-common
 	dpkg --build debian/pkg-bin-common ..