blob: 5426b59ed965fa1b67af0ad6a6419bbe63e94234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#!/bin/sh
set -e
[ -r ./po_functions ] || exit 1
. ./po_functions
if [ -z "$languages" ]; then
# Buildlist of languages to be included on the official website
languages="en cs de es fr ja pt pt_BR ru zh_CN zh_TW"
fi
if [ -z "$architectures" ]; then
architectures="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
fi
if [ -z "$destination" ]; then
destination="/tmp/manual"
fi
if [ -z "$formats" ]; then
formats="html pdf txt"
fi
[ -e "$destination" ] || mkdir -p "$destination"
export official_build="1"
export web_build="1"
export manual_target="for_wdo"
# We need to merge the XML files for English and update the POT files
export PO_USEBUILD="1"
update_templates
for lang in $languages; do
echo "Language: $lang";
# Update PO files and create XML files
check_po
if [ -n "$USES_PO" ] ; then
generate_xml
fi
for arch in $architectures; do
echo "Architecture: $arch"
if [ -n "$noarchdir" ]; then
destsuffix="$lang"
else
destsuffix="${arch}"
fi
./buildone.sh "$arch" "$lang" "$formats"
mkdir -p "$destination/$destsuffix"
for format in $formats; do
if [ "$format" = html ]; then
mv ./build.out/html/* "$destination/$destsuffix"
else
# Do not fail because of missing PDF support for some languages
mv ./build.out/install.$lang.$format "$destination/$destsuffix/install.$format.$lang" || true
fi
done
./clear.sh
done
# Delete generated XML files
[ -n "$USES_PO" ] && rm -r ../$lang || true
done
if [ "$manual_release" = "etch" ] ; then
PRESEED="../en/appendix/example-preseed-etch.xml"
LCKEEP="-v lckeep=1"
else
PRESEED="../en/appendix/example-preseed-sarge.xml"
LCKEEP=""
fi
if [ -f $PRESEED ] && [ -f preseed.awk ] ; then
gawk -f preseed.awk $LCKEEP $PRESEED >$destination/example-preseed.txt
fi
clear_po
|