/[d-i]/trunk/manual/build/build.sh
ViewVC logotype

Contents of /trunk/manual/build/build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26420 - (show annotations) (download) (as text)
Thu Mar 24 00:43:24 2005 UTC (8 years, 2 months ago) by fjpop-guest
Original Path: trunk/installer/doc/manual/build/build.sh
File MIME type: application/x-sh
File size: 1820 byte(s)
- Add build dependencies needed to build PDF/TXT versions of the manual
- Make main build script for the manual fail on errors
	
1 #!/bin/sh
2
3 set -e
4
5 [ -r ./po_functions ] || exit 1
6 . ./po_functions
7
8 if [ -z "$languages" ]; then
9 # Please add languages only if they build properly.
10 # languages="en cs es fr ja nl pt_BR" # ca da de el eu it ru
11
12 # Buildlist of languages to be included on RC3 CD's
13 languages="en cs de es fr ja pt_BR ru"
14 fi
15
16 if [ -z "$architectures" ]; then
17 architectures="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
18 fi
19
20 if [ -z "$destination" ]; then
21 destination="/tmp/manual"
22 fi
23
24 if [ -z "$formats" ]; then
25 #formats="html pdf ps txt"
26 formats="html pdf txt"
27 fi
28
29 [ -e "$destination" ] || mkdir -p "$destination"
30
31 if [ "$official_build" ]; then
32 # Propagate this to children.
33 export official_build
34 fi
35
36 # We need to merge the XML files for English and update the POT files
37 export PO_USEBUILD="1"
38 update_templates
39
40 for lang in $languages; do
41 echo "Language: $lang";
42
43 # Update PO files and create XML files
44 check_po
45 if [ -n "$USES_PO" ] ; then
46 generate_xml
47 fi
48
49 for arch in $architectures; do
50 echo "Architecture: $arch"
51 if [ -n "$noarchdir" ]; then
52 destsuffix="$lang"
53 else
54 destsuffix="${lang}.${arch}"
55 fi
56 ./buildone.sh "$arch" "$lang" "$formats"
57 mkdir -p "$destination/$destsuffix"
58 for format in $formats; do
59 if [ "$format" = html ]; then
60 mv ./build.out/html/*.html "$destination/$destsuffix"
61 else
62 # Do not fail because of missing PDF support for Japanese
63 mv ./build.out/install.$lang.$format "$destination/$destsuffix" || true
64 fi
65 done
66
67 ./clear.sh
68 done
69
70 # Delete generated XML files
71 [ -n "$USES_PO" ] && rm -r ../$lang || true
72 done
73
74 PRESEED="../en/appendix/example-preseed.xml"
75 if [ -f $PRESEED ] && [ -f preseed.awk ] ; then
76 gawk -f preseed.awk $PRESEED >$destination/example-preseed.txt
77 fi
78
79 clear_po

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5