/[d-i]/trunk/manual/build/buildweb.sh
ViewVC logotype

Diff of /trunk/manual/build/buildweb.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26551 by fjpop-guest, Wed Mar 2 13:55:48 2005 UTC revision 26552 by fjpop-guest, Mon Apr 4 12:25:43 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3    set -e
4    
5  [ -r ./po_functions ] || exit 1  [ -r ./po_functions ] || exit 1
6  . ./po_functions  . ./po_functions
7    
# Line 13  if [ -z "$architectures" ]; then Line 15  if [ -z "$architectures" ]; then
15  fi  fi
16    
17  if [ -z "$destination" ]; then  if [ -z "$destination" ]; then
18          destination="/tmp/manual"      destination="/tmp/manual"
19  fi  fi
20    
21  if [ -z "$formats" ]; then  if [ -z "$formats" ]; then
22          formats="html pdf txt"      formats="html pdf txt"
23  fi  fi
24    
25  [ -e "$destination" ] || mkdir -p "$destination"  [ -e "$destination" ] || mkdir -p "$destination"
# Line 36  for lang in $languages; do Line 38  for lang in $languages; do
38      check_po      check_po
39      if [ -n "$USES_PO" ] ; then      if [ -n "$USES_PO" ] ; then
40          generate_xml          generate_xml
         RET=$?; [ $RET -ne 0 ] && continue  
41      fi      fi
42    
43      for arch in $architectures; do      for arch in $architectures; do
# Line 52  for lang in $languages; do Line 53  for lang in $languages; do
53              if [ "$format" = html ]; then              if [ "$format" = html ]; then
54                  mv ./build.out/html/* "$destination/$destsuffix"                  mv ./build.out/html/* "$destination/$destsuffix"
55              else              else
56                  mv ./build.out/install.$lang.$format "$destination/$destsuffix/install.$format.$lang"                  # Do not fail because of missing PDF support for some languages
57                    mv ./build.out/install.$lang.$format "$destination/$destsuffix/install.$format.$lang" || true
58              fi              fi
59          done          done
60    
61          ./clear.sh          ./clear.sh
62      done      done
63    
64      # Delete generated XML files      # Delete generated XML files
65      [ -n "$USES_PO" ] && rm -r ../$lang      [ -n "$USES_PO" ] && rm -r ../$lang || true
66  done  done
67    
68  PRESEED="../en/appendix/example-preseed.xml"  PRESEED="../en/appendix/example-preseed.xml"

Legend:
Removed from v.26551  
changed lines
  Added in v.26552

  ViewVC Help
Powered by ViewVC 1.1.5