diff options
Diffstat (limited to 'build/build.sh')
-rwxr-xr-x | build/build.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/build/build.sh b/build/build.sh index dedd44df0..01e47e3a7 100755 --- a/build/build.sh +++ b/build/build.sh @@ -10,12 +10,12 @@ manual_release=${manual_release:=etch} if [ -z "$languages" ]; then # Buildlist of languages # Note: this list is no longer being maintained; see debian/langlist instead - languages="en de es fr ja" + languages="en de fr ja pt" fi if [ -z "$architectures" ]; then # Note: this list is no longer being maintained; see debian/archlist instead - architectures="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc" + architectures="alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc" fi if [ -z "$destination" ]; then @@ -34,6 +34,9 @@ if [ "$official_build" ]; then export official_build fi +# Delete any old generated XML files +clear_xml + # We need to merge the XML files for English and update the POT files export PO_USEBUILD="1" update_templates @@ -42,8 +45,7 @@ for lang in $languages; do echo "Language: $lang"; # Update PO files and create XML files - check_po - if [ -n "$USES_PO" ] ; then + if [ ! -d ../$lang ] && uses_po; then generate_xml fi @@ -67,9 +69,6 @@ for lang in $languages; do ./clear.sh done - - # Delete generated XML files - [ -n "$USES_PO" ] && rm -r ../$lang || true done PRESEED="../en/appendix/preseed.xml" @@ -77,4 +76,6 @@ if [ -f $PRESEED ] && [ -f preseed.pl ] ; then ./preseed.pl -r $manual_release $PRESEED >$destination/example-preseed.txt fi +# Delete temporary PO files and generated XML files clear_po +clear_xml |