]> git.saurik.com Git - apt.git/blobdiff - doc/makefile
updating <date> tags and the po files for the manpages
[apt.git] / doc / makefile
index d9542b438b0ade65ffc6e7c24dd59fdfe4538ec0..220a6160d038c39be014e2f65c761d2d22d1853c 100644 (file)
@@ -56,6 +56,9 @@ endif
 SOURCE = apt.8
 include $(MANPAGE_H)
 
+examples/sources.list: examples/sources.list.in apt-verbatim.ent
+       sed -e 's#&stable-codename;#$(shell grep --max-count=1 '^<!ENTITY stable-codename "' apt-verbatim.ent | cut -d'"' -f 2)#g' examples/sources.list.in > examples/sources.list
+
 # Examples
 SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
 TO = $(DOC)
@@ -84,12 +87,12 @@ doc: po4a
 
 update-po:
        po4a --previous --no-backups --force --no-translations \
-               --package-name='$(PACKAGE)' --package-version='$(PACKAGE_VERSION)' \
+               --package-name='$(PACKAGE)-doc' --package-version='$(PACKAGE_VERSION)' \
                --msgid-bugs-address='$(PACKAGE_MAIL)' po4a.conf
 
 po4a:
        po4a --previous --no-backups \
-               --package-name='$(PACKAGE)' --package-version='$(PACKAGE_VERSION)' \
+               --package-name='$(PACKAGE)-doc' --package-version='$(PACKAGE_VERSION)' \
                --msgid-bugs-address='$(PACKAGE_MAIL)' po4a.conf
 endif