/[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 61161 - (hide annotations) (download) (as text)
Mon Nov 2 23:10:45 2009 UTC (3 years, 6 months ago) by fjp
File MIME type: application/x-sh
File size: 2046 byte(s)
Remove support for alpha in build system
1 fjpop-guest 23368 #!/bin/sh
2    
3 fjpop-guest 26420 set -e
4    
5 fjpop-guest 26037 [ -r ./po_functions ] || exit 1
6     . ./po_functions
7    
8 fjp 58386 manual_release=${manual_release:=squeeze}
9 fjp 41499
10 fjpop-guest 23368 if [ -z "$languages" ]; then
11 fjp 39481 # Buildlist of languages
12     # Note: this list is no longer being maintained; see debian/langlist instead
13 fjp 44230 languages="en de fr ja pt"
14 fjpop-guest 23368 fi
15    
16     if [ -z "$architectures" ]; then
17 fjp 39481 # Note: this list is no longer being maintained; see debian/archlist instead
18 fjp 61161 architectures="amd64 armel hppa i386 ia64 mips mipsel powerpc s390 sparc"
19 fjpop-guest 23368 fi
20    
21     if [ -z "$destination" ]; then
22 fjpop-guest 26552 destination="/tmp/manual"
23 fjpop-guest 23368 fi
24    
25 fjpop-guest 24560 if [ -z "$formats" ]; then
26 fjpop-guest 26552 #formats="html pdf ps txt"
27     formats="html pdf txt"
28 fjpop-guest 24560 fi
29    
30 fjpop-guest 23368 [ -e "$destination" ] || mkdir -p "$destination"
31    
32     if [ "$official_build" ]; then
33 fjpop-guest 26552 # Propagate this to children.
34     export official_build
35 fjpop-guest 23368 fi
36    
37 fjp 44230 # Delete any old generated XML files
38     clear_xml
39    
40 fjpop-guest 26037 # We need to merge the XML files for English and update the POT files
41     export PO_USEBUILD="1"
42     update_templates
43    
44 fjpop-guest 23368 for lang in $languages; do
45     echo "Language: $lang";
46 fjpop-guest 26037
47     # Update PO files and create XML files
48 fjp 44230 if [ ! -d ../$lang ] && uses_po; then
49 fjpop-guest 26037 generate_xml
50     fi
51    
52 fjpop-guest 23368 for arch in $architectures; do
53 fjpop-guest 26552 echo "Architecture: $arch"
54     if [ -n "$noarchdir" ]; then
55     destsuffix="$lang"
56     else
57     destsuffix="${lang}.${arch}"
58     fi
59     ./buildone.sh "$arch" "$lang" "$formats"
60     mkdir -p "$destination/$destsuffix"
61     for format in $formats; do
62     if [ "$format" = html ]; then
63 fjpop-guest 27855 mv ./build.out/html/* "$destination/$destsuffix"
64 fjpop-guest 26552 else
65     # Do not fail because of missing PDF support for some languages
66     mv ./build.out/install.$lang.$format "$destination/$destsuffix" || true
67     fi
68     done
69 fjpop-guest 26037
70     ./clear.sh
71 fjpop-guest 23368 done
72     done
73    
74 fjp 33725 PRESEED="../en/appendix/preseed.xml"
75     if [ -f $PRESEED ] && [ -f preseed.pl ] ; then
76     ./preseed.pl -r $manual_release $PRESEED >$destination/example-preseed.txt
77 fjp 30372 fi
78 fjpop-guest 26037
79 fjp 44230 # Delete temporary PO files and generated XML files
80 fjpop-guest 26037 clear_po
81 fjp 44230 clear_xml

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5