/[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 26037 - (show annotations) (download) (as text)
Wed Mar 2 13:55:48 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: 1758 byte(s)
- Add support for building from PO files in build scripts
- Create 'clean' example-preseed.txt file during official builds

1 #!/bin/sh
2
3 [ -r ./po_functions ] || exit 1
4 . ./po_functions
5
6 if [ -z "$languages" ]; then
7 # Please add languages only if they build properly.
8 # languages="en cs es fr ja nl pt_BR" # ca da de el eu it ru
9
10 # Buildlist of languages to be included on RC2 CD's
11 languages="en cs es fr ja pt_BR"
12 fi
13
14 if [ -z "$architectures" ]; then
15 architectures="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
16 fi
17
18 if [ -z "$destination" ]; then
19 destination="/tmp/manual"
20 fi
21
22 if [ -z "$formats" ]; then
23 #formats="html pdf ps txt"
24 formats="html"
25 fi
26
27 [ -e "$destination" ] || mkdir -p "$destination"
28
29 if [ "$official_build" ]; then
30 # Propagate this to children.
31 export official_build
32 fi
33
34 # We need to merge the XML files for English and update the POT files
35 export PO_USEBUILD="1"
36 update_templates
37
38 for lang in $languages; do
39 echo "Language: $lang";
40
41 # Update PO files and create XML files
42 check_po
43 if [ -n "$USES_PO" ] ; then
44 generate_xml
45 RET=$?; [ $RET -ne 0 ] && continue
46 fi
47
48 for arch in $architectures; do
49 echo "Architecture: $arch"
50 if [ -n "$noarchdir" ]; then
51 destsuffix="$lang"
52 else
53 destsuffix="${lang}.${arch}"
54 fi
55 ./buildone.sh "$arch" "$lang" "$formats"
56 mkdir -p "$destination/$destsuffix"
57 for format in $formats; do
58 if [ "$format" = html ]; then
59 mv ./build.out/html/*.html "$destination/$destsuffix"
60 else
61 mv ./build.out/install.$lang.$format "$destination/$destsuffix"
62 fi
63 done
64
65 ./clear.sh
66 done
67
68 # Delete generated XML files
69 [ -n "$USES_PO" ] && rm -r ../$lang
70 done
71
72 PRESEED="../en/appendix/example-preseed.xml"
73 if [ -f $PRESEED ] && [ -f preseed.awk ] ; then
74 gawk -f preseed.awk $PRESEED >$destination/example-preseed.txt
75 fi
76
77 clear_po

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5