From b45fb8db8c586fa837a9d1ad0c2247a7e003e51f Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 15 Mar 2010 11:02:31 +0100 Subject: * doc/makefile, doc/*: - generate subdirectories for building the manpages in on the fly depending on the po files we have. --- debian/changelog | 3 +++ doc/de/makefile | 11 ----------- doc/es/makefile | 11 ----------- doc/fr/makefile | 11 ----------- doc/it/makefile | 11 ----------- doc/ja/makefile | 11 ----------- doc/lang.makefile | 11 +++++++++++ doc/makefile | 15 ++++++++++++--- doc/pl/makefile | 11 ----------- doc/pt_BR/makefile | 11 ----------- 10 files changed, 26 insertions(+), 80 deletions(-) delete mode 100644 doc/de/makefile delete mode 100644 doc/es/makefile delete mode 100644 doc/fr/makefile delete mode 100644 doc/it/makefile delete mode 100644 doc/ja/makefile create mode 100644 doc/lang.makefile delete mode 100644 doc/pl/makefile delete mode 100644 doc/pt_BR/makefile diff --git a/debian/changelog b/debian/changelog index 415a6fd8d..ddbf19214 100644 --- a/debian/changelog +++ b/debian/changelog @@ -32,6 +32,9 @@ apt (0.7.26) UNRELEASED; urgency=low - save Commandline in Commandline::AsString for logging * apt-pkg/deb/debversion.cc: - consider absent of debian revision equivalent to 0 (Closes: #573592) + * doc/makefile, doc/*: + - generate subdirectories for building the manpages in on the fly + depending on the po files we have. [ Julian Andres Klode ] * cmdline/apt-mark: diff --git a/doc/de/makefile b/doc/de/makefile deleted file mode 100644 index a827a0f24..000000000 --- a/doc/de/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/de - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=de - -include $(PO4A_MANPAGE_H) diff --git a/doc/es/makefile b/doc/es/makefile deleted file mode 100644 index 0b5b52222..000000000 --- a/doc/es/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/es - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=es - -include $(PO4A_MANPAGE_H) diff --git a/doc/fr/makefile b/doc/fr/makefile deleted file mode 100644 index 214534736..000000000 --- a/doc/fr/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/fr - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=fr - -include $(PO4A_MANPAGE_H) diff --git a/doc/it/makefile b/doc/it/makefile deleted file mode 100644 index 2179ec15f..000000000 --- a/doc/it/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/it - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=it - -include $(PO4A_MANPAGE_H) diff --git a/doc/ja/makefile b/doc/ja/makefile deleted file mode 100644 index f44bb1c0f..000000000 --- a/doc/ja/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/ja - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=ja - -include $(PO4A_MANPAGE_H) diff --git a/doc/lang.makefile b/doc/lang.makefile new file mode 100644 index 000000000..9fdc6ea70 --- /dev/null +++ b/doc/lang.makefile @@ -0,0 +1,11 @@ +# -*- make -*- +BASE=../.. +SUBDIR=doc/@@LANG@@ + +# Bring in the default rules +include ../../buildlib/defaults.mak + +# Language Code of this translation +LC=@@LANG@@ + +include $(PO4A_MANPAGE_H) diff --git a/doc/makefile b/doc/makefile index 6e6186466..93504e23e 100644 --- a/doc/makefile +++ b/doc/makefile @@ -46,9 +46,14 @@ TO = $(DOC) TARGET = binary include $(COPY_H) -#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr +.PHONY: clean clean-subdirs veryclean veryclean-subdirs all binary doc doc: - for dir in $(SUBDIRS); do\ + for i in $(shell ls po/*.po | sed -r 's#po/([a-z]+[A-Z_]*).po#\1#'); do \ + test -d $$i || mkdir $$i; \ + test -f $$i/makefile || sed "s#@@LANG@@#$$i#" lang.makefile > $$i/makefile; \ + done + # it is likely that we have changed the list, so SUBDIRS is incorrect + for dir in $(dir $(wildcard */makefile)); do\ $(MAKE) -C $$dir $@; \ done @@ -70,7 +75,7 @@ doc: po4a clean: po4a-clean -.PHONY: update-po po4a +.PHONY: update-po po4a stats update-po: po4a --previous --no-backups --force --no-translations po4a.conf @@ -79,6 +84,10 @@ po4a-clean: po4a: po4a --previous --no-backups po4a.conf + +stats: + for i in po/*.po; do echo -n "$$i: "; msgfmt --statistics $$i; done + endif ifdef DOXYGEN diff --git a/doc/pl/makefile b/doc/pl/makefile deleted file mode 100644 index 7e77b29b9..000000000 --- a/doc/pl/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/pl - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=pl - -include $(PO4A_MANPAGE_H) diff --git a/doc/pt_BR/makefile b/doc/pt_BR/makefile deleted file mode 100644 index 6e485bbf6..000000000 --- a/doc/pt_BR/makefile +++ /dev/null @@ -1,11 +0,0 @@ -# -*- make -*- -BASE=../.. -SUBDIR=doc/pt_BR - -# Bring in the default rules -include ../../buildlib/defaults.mak - -# Language Code of this translation -LC=pt_BR - -include $(PO4A_MANPAGE_H) -- cgit v1.2.3