summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-15 11:02:31 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-15 11:02:31 +0100
commitb45fb8db8c586fa837a9d1ad0c2247a7e003e51f (patch)
tree2d3e929086b2dc56f40ad6b075bfbb928d7b4d95
parentc176c4d0adad246ac0768f9e2b60aa8e4c56fffb (diff)
* doc/makefile, doc/*:
- generate subdirectories for building the manpages in on the fly depending on the po files we have.
-rw-r--r--debian/changelog3
-rw-r--r--doc/es/makefile11
-rw-r--r--doc/fr/makefile11
-rw-r--r--doc/it/makefile11
-rw-r--r--doc/ja/makefile11
-rw-r--r--doc/lang.makefile (renamed from doc/de/makefile)4
-rw-r--r--doc/makefile15
-rw-r--r--doc/pl/makefile11
-rw-r--r--doc/pt_BR/makefile11
9 files changed, 17 insertions, 71 deletions
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/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/de/makefile b/doc/lang.makefile
index a827a0f24..9fdc6ea70 100644
--- a/doc/de/makefile
+++ b/doc/lang.makefile
@@ -1,11 +1,11 @@
# -*- make -*-
BASE=../..
-SUBDIR=doc/de
+SUBDIR=doc/@@LANG@@
# Bring in the default rules
include ../../buildlib/defaults.mak
# Language Code of this translation
-LC=de
+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)