diff options
author | Yuri Chornoivan <yurchor@ukr.net> | 2018-02-23 20:34:43 +0200 |
---|---|---|
committer | Yuri Chornoivan <yurchor@ukr.net> | 2018-02-23 20:34:43 +0200 |
commit | 89f013bb4d68b0df17131df47f320ab4a44f060f (patch) | |
tree | 3a8a398ff40d57cc86940f295c97509802935f32 /docs/bootiso/makedoc.sh | |
parent | cd4e1a8183a04d6067bdfa2894b64da8ec339c93 (diff) | |
download | tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.gz tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.bz2 tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.xz tools-89f013bb4d68b0df17131df47f320ab4a44f060f.zip |
Create stable folder and move stable docs there
Diffstat (limited to 'docs/bootiso/makedoc.sh')
-rwxr-xr-x | docs/bootiso/makedoc.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/docs/bootiso/makedoc.sh b/docs/bootiso/makedoc.sh deleted file mode 100755 index 8e6bb539..00000000 --- a/docs/bootiso/makedoc.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -e -LANG=$1 - -for doci in en/*.xml; do - docfilename=${doci#*/} - doc=${docfilename%.*} - if [[ $LANG == "" ]]; then - for i in *.po - do - ILANG=${i%.*} - echo "Producing XML "$doc" for locale "$ILANG - po4a-translate -k 0 --format docbook --master-charset utf-8 --localized-charset utf-8 \ - -o doctype="book" -o nodefault="<imageobject> <caution> <note>" -o untranslated="<imageobject>" -o translated="<caution> <note>" --master en/${doc}.xml \ - --po $ILANG.po --localized $ILANG/${doc}.xml - perl -i -p -e "s/version=\"5\.0\"/version=\"5\.0\" xml:lang=\"$ILANG\"/;" $ILANG/${doc}.xml - perl -i -p -e "s/xml\:lang=\"$ILANG\"\ xml\:lang=\"$ILANG\"/xml\:lang=\"$ILANG\"/;" $ILANG/${doc}.xml - done - else - echo "Producing XML of "$doc" for locale "$LANG - po4a-translate -k 0 --format docbook --master-charset utf-8 --localized-charset utf-8 \ - -o doctype="book" -o nodefault="<imageobject> <caution> <note>" -o untranslated="<imageobject>" -o translated="<caution> <note>" --master en/${doc}.xml \ - --po $LANG.po --localized $LANG/${doc}.xml - perl -i -p -e "s/version=\"5\.0\"/version=\"5\.0\" xml:lang=\"$LANG\"/;" $LANG/${doc}.xml - perl -i -p -e "s/xml\:lang=\"$LANG\"\ xml\:lang=\"$LANG\"/xml\:lang=\"$LANG\"/;" $LANG/${doc}.xml - fi -done |