# Builds the HTML files for all specified language codes, specifiying the # language in the final documents and performing some other necessary # text replacements not handled by yelp-build. # Language codes are normalized to IETF format, as opposed to glibc format ubuntu-help: clean style for lc in C $(help_linguas); do \ lang=`echo $$lc | $(SED) -e 's/[@_]/-/'`; \ if test "$$lang" = "C"; then lang=en; fi; \ if test "$$lang" = "gl"; then lang=gl-GL; fi; \ if test "$$lang" = "ms"; then lang=ms-MS; fi; \ if test "$$lang" = "pl"; then lang=pl-PL; fi; \ yelp-build html -o "$(HTMLDESTDIR)/$$lang/" -x $(UBUNTUXSL) \ "$(SRCDIR)/$$lc/"; \ $(SED) -i \ -e '1s/^/\n/' \ -e "s///" \ -e 's|/usr/share/icons/.*/\(.*\.svg\)|img/\1|'\ "$(HTMLDESTDIR)/$$lang/"*.html; \ $(SED) -i -f "$(URLFIXER)" "$(HTMLDESTDIR)/$$lang/"*.html; \ echo "\nSearching for unfixed ghelp links:"; \ grep "href=\"ghelp:" "$(HTMLDESTDIR)/$$lang/"*.html; \ rm -rf "$(HTMLDESTDIR)/$$lang/usr"; \ done