| 1 |
#!/bin/sh |
#!/bin/sh |
| 2 |
|
|
| 3 |
|
set -e |
| 4 |
|
|
| 5 |
[ -r ./po_functions ] || exit 1 |
[ -r ./po_functions ] || exit 1 |
| 6 |
. ./po_functions |
. ./po_functions |
| 7 |
|
|
| 15 |
fi |
fi |
| 16 |
|
|
| 17 |
if [ -z "$destination" ]; then |
if [ -z "$destination" ]; then |
| 18 |
destination="/tmp/manual" |
destination="/tmp/manual" |
| 19 |
fi |
fi |
| 20 |
|
|
| 21 |
if [ -z "$formats" ]; then |
if [ -z "$formats" ]; then |
| 22 |
formats="html pdf txt" |
formats="html pdf txt" |
| 23 |
fi |
fi |
| 24 |
|
|
| 25 |
[ -e "$destination" ] || mkdir -p "$destination" |
[ -e "$destination" ] || mkdir -p "$destination" |
| 38 |
check_po |
check_po |
| 39 |
if [ -n "$USES_PO" ] ; then |
if [ -n "$USES_PO" ] ; then |
| 40 |
generate_xml |
generate_xml |
|
RET=$?; [ $RET -ne 0 ] && continue |
|
| 41 |
fi |
fi |
| 42 |
|
|
| 43 |
for arch in $architectures; do |
for arch in $architectures; do |
| 53 |
if [ "$format" = html ]; then |
if [ "$format" = html ]; then |
| 54 |
mv ./build.out/html/* "$destination/$destsuffix" |
mv ./build.out/html/* "$destination/$destsuffix" |
| 55 |
else |
else |
| 56 |
mv ./build.out/install.$lang.$format "$destination/$destsuffix/install.$format.$lang" |
# Do not fail because of missing PDF support for some languages |
| 57 |
|
mv ./build.out/install.$lang.$format "$destination/$destsuffix/install.$format.$lang" || true |
| 58 |
fi |
fi |
| 59 |
done |
done |
| 60 |
|
|
| 61 |
./clear.sh |
./clear.sh |
| 62 |
done |
done |
| 63 |
|
|
| 64 |
# Delete generated XML files |
# Delete generated XML files |
| 65 |
[ -n "$USES_PO" ] && rm -r ../$lang |
[ -n "$USES_PO" ] && rm -r ../$lang || true |
| 66 |
done |
done |
| 67 |
|
|
| 68 |
PRESEED="../en/appendix/example-preseed.xml" |
PRESEED="../en/appendix/example-preseed.xml" |