From: Osamu OKANO Date: Fri, 13 May 2011 13:14:13 GMT Subject: [PATCH 2/7] add make(shell) scripts Message-ID: <1305292458-3920-3-git-send-email-okano.osamu@gmail.com> In-Reply-To: <1305292458-3920-1-git-send-email-okano.osamu@gmail.com> --- Documentation/make_html | 10 ++++++++++ Documentation/make_txt | 13 +++++++++++++ Documentation/make_update | 13 +++++++++++++ 3 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 Documentation/make_html create mode 100644 Documentation/make_txt create mode 100644 Documentation/make_update diff --git a/Documentation/make_html b/Documentation/make_html new file mode 100644 index 0000000..cbd0a69 --- /dev/null +++ b/Documentation/make_html @@ -0,0 +1,10 @@ +#!/bin/sh +for t in *.txt +do + asciidoc \ + -b xhtml11 \ + -d manpage \ + -f ../asciidoc.conf \ + -o `basename $t .txt`.html \ + $t +done diff --git a/Documentation/make_txt b/Documentation/make_txt new file mode 100644 index 0000000..8fd6ab7 --- /dev/null +++ b/Documentation/make_txt @@ -0,0 +1,13 @@ +#!/bin/sh +for t in *.po +do + po4a-translate \ + --keep 0 \ + --format text \ + --option asciidoc \ + --master-charset UTF8 \ + --localized-charset UTF8 \ + --master ../`basename $t .po`.txt \ + --po $t \ + --localized `basename $t .po`.txt +done diff --git a/Documentation/make_update b/Documentation/make_update new file mode 100644 index 0000000..59322d2 --- /dev/null +++ b/Documentation/make_update @@ -0,0 +1,13 @@ +#!/bin/sh +for t in *.po +do + lang=`basename $PWD` + cd .. + po4a-updatepo \ + --master-charset UTF8 \ + --format text \ + --master `basename $t .po`.txt \ + --po $lang/$t \ + --option asciidoc + cd $lang +done -- 1.7.5.1.169.g505a1.dirty