patch from TAKEDA yasuma to bypass any missing language files
authorGerald Carter <jerry@samba.org>
Wed, 10 Dec 2003 14:10:39 +0000 (14:10 +0000)
committerGerald Carter <jerry@samba.org>
Wed, 10 Dec 2003 14:10:39 +0000 (14:10 +0000)
(This used to be commit c65f63be1eb8bb9350cc7e843c858050c5ce5095)

source3/script/installswat.sh

index 534c2d761fbe3eb7c45a308aee91aa1615015013..027ca3511058d0eb62fb4d0ab56d9a548d60ef5e 100755 (executable)
@@ -29,6 +29,9 @@ done
 for ln in $LANGS; do
 
   for f in $SRCDIR../swat/$ln/images/*.gif; do
+      if [ ! -f $f ] ; then
+       continue
+      fi
       FNAME=$SWATDIR/$ln/images/`basename $f`
       echo $FNAME
       cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
@@ -38,6 +41,9 @@ for ln in $LANGS; do
   # Install html help
 
   for f in $SRCDIR../swat/$ln/help/*.html; do
+      if [ ! -f $f ] ; then
+       continue
+      fi
       FNAME=$SWATDIR/$ln/help/`basename $f`
       echo $FNAME
       if [ "x$BOOKDIR" = "x" ]; then
@@ -54,6 +60,9 @@ for ln in $LANGS; do
   # Install "server-side" includes
 
   for f in $SRCDIR../swat/$ln/include/*.html; do
+      if [ ! -f $f ] ; then
+       continue
+      fi
       FNAME=$SWATDIR/$ln/include/`basename $f`
       echo $FNAME
       cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?