diff options
author | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
commit | 1ea73eea5ecc6a8ed901316049259aee737ee554 (patch) | |
tree | 03a077f0b1b1548f3c806bd1c5795964fba0fb52 /build/build.sh | |
download | installation-guide-1ea73eea5ecc6a8ed901316049259aee737ee554.zip |
move manual to top-level directory, split out of debian-installer package
Diffstat (limited to 'build/build.sh')
-rwxr-xr-x | build/build.sh | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/build/build.sh b/build/build.sh new file mode 100755 index 000000000..94a25516a --- /dev/null +++ b/build/build.sh @@ -0,0 +1,85 @@ +#!/bin/sh + +set -e + +[ -r ./po_functions ] || exit 1 +. ./po_functions + +if [ -z "$languages" ]; then + # Please add languages only if they build properly. + # languages="en cs es fr ja nl pt_BR" # ca da de el eu it ru + + # Buildlist of languages to be included on RC3 CD's + languages="en cs de es fr ja pt_BR ru" +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 ps txt" + formats="html pdf txt" +fi + +[ -e "$destination" ] || mkdir -p "$destination" + +if [ "$official_build" ]; then + # Propagate this to children. + export official_build +fi + +# 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="${lang}.${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" || 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 |