r10621 - in /desktop/unstable/gdm/debian: changelog rules

lool at users.alioth.debian.org lool at users.alioth.debian.org
Tue May 1 11:09:55 UTC 2007


Author: lool
Date: Tue May  1 11:09:54 2007
New Revision: 10621

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=10621
Log:
* Compute DEB_VERSION, DEB_NOEPOCH_VERSION, and DEB_UPSTREAM_VERSION
  similarly to CDBS and finally compute MAJOR_MINOR for the GNOME version
  included in the footer of man pages.

Modified:
    desktop/unstable/gdm/debian/changelog
    desktop/unstable/gdm/debian/rules

Modified: desktop/unstable/gdm/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm/debian/changelog?rev=10621&op=diff
==============================================================================
--- desktop/unstable/gdm/debian/changelog (original)
+++ desktop/unstable/gdm/debian/changelog Tue May  1 11:09:54 2007
@@ -25,8 +25,11 @@
     - Include full GPL blob.
     - List GNOME Team as new maintainer.
   * Include AUTHORS in docs.
-
- -- Loic Minier <lool at dooz.org>  Tue, 01 May 2007 12:53:49 +0200
+  * Compute DEB_VERSION, DEB_NOEPOCH_VERSION, and DEB_UPSTREAM_VERSION
+    similarly to CDBS and finally compute MAJOR_MINOR for the GNOME version
+    included in the footer of man pages.
+
+ -- Loic Minier <lool at dooz.org>  Tue, 01 May 2007 13:08:47 +0200
 
 gdm (2.16.4-1.1) unstable; urgency=low
 

Modified: desktop/unstable/gdm/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm/debian/rules?rev=10621&op=diff
==============================================================================
--- desktop/unstable/gdm/debian/rules (original)
+++ desktop/unstable/gdm/debian/rules Tue May  1 11:09:54 2007
@@ -4,6 +4,12 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+
+MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
 
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 
@@ -107,6 +113,6 @@
 .PHONY: build clean binary-indep binary-arch binary install configure patch
 
 %.8: %.pod
-	pod2man --section=8 --release="GNOME 2.14" --center="Debian GNU/Linux" $< | sed -e 's/debian:://'> $@
+	pod2man --section=8 --release="GNOME $(MAJOR_MINOR)" --center="Debian GNU/Linux" $< | sed -e 's/debian:://'> $@
 %.1: %.pod
-	pod2man --section=8 --release="GNOME 2.14" --center="Debian GNU/Linux" $< | sed -e 's/debian:://'> $@
+	pod2man --section=8 --release="GNOME $(MAJOR_MINOR)" --center="Debian GNU/Linux" $< | sed -e 's/debian:://'> $@




More information about the pkg-gnome-commits mailing list