Ver código fonte

Ensure all translated manual pages actually get included in the binary
packages.

Scott James Remnant 22 anos atrás
pai
commit
c3c4382fc5
5 arquivos alterados com 17 adições e 6 exclusões
  1. 7 0
      ChangeLog
  2. 1 1
      configure.in
  3. 2 1
      debian/changelog
  4. 6 3
      debian/rules
  5. 1 1
      man/Makefile.in

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Mon Apr 26 18:53:15 BST 2004 Scott James Remnant <scott@netsplit.com>
+
+  * configure.in: Put the man page directories in alphabetical order.
+  * man/Makefile.in: Likewise
+  * debian/rules: Extract manual page directories from Makefile.in and
+  use that list instead of hardcoding them.
+
 Sun Apr 25 19:00:20 BST 2004 Scott James Remnant <scott@netsplit.com>
 
   * version-nr, debian/changelog: Bump version to 1.10.22.

+ 1 - 1
configure.in

@@ -478,9 +478,9 @@ man/en/Makefile
 man/es/Makefile
 man/fr/Makefile
 man/ja/Makefile
+man/pt_BR/Makefile
 man/ru/Makefile
 man/sv/Makefile
-man/pt_BR/Makefile
 scripts/Makefile
 main/Makefile
 dselect/Makefile

+ 2 - 1
debian/changelog

@@ -1,6 +1,7 @@
 dpkg (1.10.22) unstable; urgency=low
 
-  * 
+  * Stop hardcoding the list of manual page languages in debian/rules,
+    so we include Spanish, Russian and Brazilian Portugese.  Closes: #245994.
 
  -- Scott James Remnant <scott@netsplit.com>  UNRELEASED
 

+ 6 - 3
debian/rules

@@ -26,6 +26,9 @@ endif
 
 BUILD-DIRS	:= $(BUILD) $(BUILD)-static
 
+# Hacky, but effective
+MANDIRS := $(shell sed -n -e '/^SUBDIRS/{s/.*= *//;s/ en / /;p}' $(CURDIR)/man/Makefile.in)
+
 aclocal.m4: $(wildcard automake/*.m4)
 	aclocal -I automake
 
@@ -124,7 +127,7 @@ binary-dpkg-most binary-dpkg-static-most: binary-dpkg%-most: stamp-binary%
 		cp -a $(INSTALL_TMP)/usr/share/doc/dpkg/$$i $(TMP_DPKG)/usr/share/doc/dpkg$(static)/ ; \
 	done
 	cp -a debian/pseudo-tags $(TMP_DPKG)/usr/share/doc/dpkg$(static)/
-	set -e ; for i in "" de fr ja sv ; do \
+	set -e ; for i in "" $(MANDIRS) ; do \
 		install -d -m 755 -o root -g root $(TMP_DPKG)/usr/share/man/$$i/man1 ; \
 		for m in md5sum.1 dpkg-deb.1 ; do \
 			if [ -f $(INSTALL_TMP)/usr/share/man/$$i/man1/$$m ] ; then \
@@ -201,7 +204,7 @@ binary-dpkg-dev: stamp-binary
 		dpkg-parsechangelog dpkg-checkbuilddeps ; do \
 		mv $(INSTALL_TMP)/usr/bin/$$i $(TMP_DPKG_DEV)/usr/bin/ ; \
 	done
-	set -e ; for i in "" de fr ja sv ; do \
+	set -e ; for i in "" $(MANDIRS) ; do \
 		install -d -m 755 -o root -g root $(TMP_DPKG_DEV)/usr/share/man/$$i/man1 ; \
 		for m in dpkg-name.1 dpkg-source.1 822-date.1 dpkg-architecture.1 \
 			dpkg-buildpackage.1 dpkg-distaddfile.1 dpkg-genchanges.1 \
@@ -251,7 +254,7 @@ binary-dselect: stamp-binary
 	install -d -m 755 -o root -g root $(TMP_DSELECT)/var/lib/dpkg
 	mv $(INSTALL_TMP)/var/lib/dpkg/methods $(TMP_DSELECT)/var/lib/dpkg/
 
-	set -e ; for i in "" de fr ja sv ; do \
+	set -e ; for i in "" $(MANDIRS) ; do \
 		install -d -m 755 -o root -g root $(TMP_DSELECT)/usr/share/man/$$i/man5 ; \
 		for m in dselect.cfg.5 ; do \
 			if [ -f $(INSTALL_TMP)/usr/share/man/$$i/man5/$$m ] ; then \

+ 1 - 1
man/Makefile.in

@@ -2,7 +2,7 @@ VPATH		= @srcdir@
 srcdir		= @srcdir@
 top_srcdir	= @top_srcdir@
 
-SUBDIRS		= de en fr ja pt_BR ru sv es
+SUBDIRS		= de en es fr ja pt_BR ru sv
 
 default: all
 include ../Makefile.conf