/[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 68389 - (show annotations) (download) (as text)
Fri Nov 30 21:43:38 2012 UTC (5 months, 2 weeks ago) by pkern
File MIME type: application/x-sh
File size: 1475 byte(s)
get arch and lang list from definition file, like for www.d.o builds
1 #!/bin/sh
2
3 set -e
4
5 [ -r ./po_functions ] || exit 1
6 . ./po_functions
7
8 manual_release=${manual_release:=wheezy}
9
10 if [ -z "$languages" ]; then
11 # Buildlist of languages
12 # Based on list of languages used in official builds
13 languages="$(cd ../debian; ./getfromlist langlist | tr $'\n' ' ')"
14 fi
15
16 if [ -z "$architectures" ]; then
17 # Note: this list is no longer being maintained; see debian/archlist instead
18 architectures="$(cd ../debian; ./getfromlist archlist | tr $'\n' ' ')"
19 fi
20
21 if [ -z "$destination" ]; then
22 destination="/tmp/manual"
23 fi
24
25 if [ -z "$formats" ]; then
26 #formats="html pdf ps txt"
27 formats="html pdf txt"
28 fi
29
30 [ -e "$destination" ] || mkdir -p "$destination"
31
32 if [ "$official_build" ]; then
33 # Propagate this to children.
34 export official_build
35 fi
36
37 # Delete any old generated XML files
38 clear_xml
39
40 # We need to merge the XML files for English and update the POT files
41 export PO_USEBUILD="1"
42 update_templates
43
44 for lang in $languages; do
45 echo "Language: $lang";
46
47 # Update PO files and create XML files
48 if [ ! -d ../$lang ] && uses_po; then
49 generate_xml
50 fi
51 done
52
53 make languages="$languages" architectures="$architectures" destination="$destination" formats="$formats"
54
55 PRESEED="../en/appendix/preseed.xml"
56 if [ -f $PRESEED ] && [ -f preseed.pl ] ; then
57 ./preseed.pl -r $manual_release $PRESEED >$destination/example-preseed.txt
58 fi
59
60 # Delete temporary PO files and generated XML files
61 clear_po
62 clear_xml

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5