apt-howto: fixing build failures
I noticed build failures of apt-howto in the build logs of the Debian
website. The pdf and ps versions for Greek can't be build since
debiandoc-sgml doesn't support the el_GR locale and latex doesn't cope
with latin7 input very well by default ;)
The attached patch just disables the build. While I was it I also fixed
the build of the pt_BR version so that it uses the right locale.
Comments welcome.
Gruesse,
--
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/
Index: Makefile
===================================================================
RCS file: /org/cvs.debian.org/cvs/debian-doc/ddp/manuals.sgml/apt-howto/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 8 Nov 2002 00:53:27 -0000 1.7
+++ Makefile 27 Nov 2004 16:52:01 -0000
@@ -20,15 +20,19 @@
@for i in *.??*.sgml; do \
j=$${i#$(MANUAL).}; lang=$${j%.sgml}; \
langfoo=`echo $$lang | tr 'A-Z_' 'a-z-'`; \
+ langbar=`echo $$lang | perl -pe 's/(\w\w)-(\w\w)/"$$1_".uc($$2)/e'`; \
if [ $$i -nt $(MANUAL).$$lang.html/index.$$langfoo.html ]; then \
- echo debiandoc2html -c -l $$lang $$i "($$langfoo)"; \
- debiandoc2html -c -l $$lang $$i; \
+ echo debiandoc2html -c -l $$langbar $$i "($$langfoo)"; \
+ debiandoc2html -c -l $$langbar $$i; \
fi; \
- done
+ done
# generating plain text
txt text: $(patsubst %.sgml,%.txt,$(wildcard *.??*.sgml))
+$(MANUAL).pt-br.txt: $(MANUAL).pt-br.sgml
+ debiandoc2text -l pt_BR $<
+
$(MANUAL).%.txt: $(MANUAL).%.sgml
debiandoc2text -l $* $<
@@ -36,12 +40,24 @@
texfriendly := $(filter-out $(MANUAL).ko.sgml,$(filter-out $(MANUAL).ja.sgml,$(wildcard *.??*.sgml)))
ps: $(patsubst %.sgml,%.ps,$(texfriendly))
+$(MANUAL).pt-br.ps: $(MANUAL).pt-br.sgml
+ debiandoc2latexps -l pt_BR $<
+
+$(MANUAL).el.ps: $(MANUAL).el.sgml
+ @echo Locale 'el' not yet supported
+
$(MANUAL).%.ps: $(MANUAL).%.sgml
debiandoc2latexps -l $* $<
# generating Portable Document Format
pdf: $(patsubst %.sgml,%.pdf,$(texfriendly))
+$(MANUAL).pt-br.pdf: $(MANUAL).pt-br.sgml
+ debiandoc2latexpdf -l pt_BR $<
+
+$(MANUAL).el.pdf: $(MANUAL).el.sgml
+ @echo Locale 'el' not yet supported
+
$(MANUAL).%.pdf: $(MANUAL).%.sgml
debiandoc2latexpdf -l $* $<
Reply to: