~ubuntu-branches/ubuntu/saucy/ubuntu-docs/saucy

« back to all changes in this revision

Viewing changes to html/Makefile

  • Committer: Package Import Robot
  • Author(s): Matthew East
  • Date: 2012-05-07 20:57:02 UTC
  • Revision ID: package-import@ubuntu.com-20120507205702-gy8hqfqxurw5jfvj
Tags: 12.10.1
No-change upload from precise, bump version number only

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# for the HTML to be built in turn. This means all the locales for which
34
34
# HTML output is needed will have to have been specified in the main
35
35
# HELP_LINGUAS variable in the ubuntu-help Makefile
36
 
HELP_LINGUAS=ast bs ca cs da de el en_AU  es fi fr gl hu it ja nl pt_BR ru sk sl sr sv tr ug uk zh_CN
 
36
HELP_LINGUAS = ast az bs ca cs da de el en_AU en_CA en_GB es fi fo fr gl hi hr hu id it ja kk kn ko lt lv mg ms my nb nl oc pl pt pt_BR ru sk sl sq sr sv ta te tr ug uk uz zh_CN zh_TW
37
37
 
38
38
index_file_exists = $(wildcard $(SRCDIR)/$(lingua)/index.page)
39
39
linguas := $(HELP_LINGUAS)
57
57
        for lc in C $(help_linguas); do \
58
58
                lang=`echo $$lc | $(SED) -e 's/[@_]/-/'`; \
59
59
                if test "$$lang" = "C"; then lang=en-US; fi; \
 
60
                if test "$$lang" = "gl"; then lang=gl-GL; fi; \
 
61
                if test "$$lang" = "ms"; then lang=ms-MS; fi; \
 
62
                if test "$$lang" = "pl"; then lang=pl-PL; fi; \
60
63
                yelp-build html -o "$(HTMLDESTDIR)/$$lang/" -x $(UBUNTUXSL) \
61
64
                        "$(SRCDIR)/$$lc/"; \
62
65
                $(SED) -i \
80
83
        for lc in C $(help_linguas); do \
81
84
                lang=`echo $$lc | $(SED) -e 's/[@_]/-/'`; \
82
85
                if test "$$lang" = "C"; then lang=en-US; fi; \
 
86
                if test "$$lang" = "gl"; then lang=gl-GL; fi; \
 
87
                if test "$$lang" = "ms"; then lang=ms-MS; fi; \
 
88
                if test "$$lang" = "pl"; then lang=pl-PL; fi; \
83
89
                mkdir -p "$(HTMLDESTDIR)/$$lang/img"; \
84
90
                mkdir -p "$(HTMLDESTDIR)/$$lang/figures"; \
85
91
                cp img/* "$(HTMLDESTDIR)/$$lang/img"; \
94
100
        for lc in C $(help_linguas); do \
95
101
                lang=`echo $$lc | $(SED) -e 's/[@_]/-/'`; \
96
102
                if test "$$lang" = "C"; then lang=en-US; fi; \
 
103
                if test "$$lang" = "gl"; then lang=gl-GL; fi; \
 
104
                if test "$$lang" = "ms"; then lang=ms-MS; fi; \
 
105
                if test "$$lang" = "pl"; then lang=pl-PL; fi; \
97
106
                find "$(INSTALLDIR)/$$lang" -type f -exec mv {} {}.$$lang \; ; \
98
107
                cp -af "$(INSTALLDIR)/$$lang"/* "$(INSTALLDIR)"; \
99
108
                rm -Rf "$(INSTALLDIR)/$$lang" ; \