From: Scott James Remnant Date: Tue, 27 Apr 2004 17:55:37 +0000 (+0000) Subject: Ensure all translated manual pages actually get included in the binary X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c4382fc559531ed400dd8a34b4924684644d62;p=dpkg Ensure all translated manual pages actually get included in the binary packages. --- diff --git a/ChangeLog b/ChangeLog index f764707c..44bf96c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Apr 26 18:53:15 BST 2004 Scott James Remnant + + * 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 * version-nr, debian/changelog: Bump version to 1.10.22. diff --git a/configure.in b/configure.in index 0a2d5580..a2091b6c 100644 --- a/configure.in +++ b/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 diff --git a/debian/changelog b/debian/changelog index 9a39bb29..20bbb987 100644 --- a/debian/changelog +++ b/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 UNRELEASED diff --git a/debian/rules b/debian/rules index 03de9cc1..c246e802 100755 --- a/debian/rules +++ b/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 \ diff --git a/man/Makefile.in b/man/Makefile.in index 87ac5849..c37efb63 100644 --- a/man/Makefile.in +++ b/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