Bringing packaging/Debian/* to a more recent state.
[kai/samba.git] / packaging / Debian / debian / patches / installswat.sh.patch
1 --- samba-3.0alpha23.orig/source/script/installswat.sh  2001-10-17 16:00:14.000000000 -0400
2 +++ samba-3.0alpha23/source/script/installswat.sh       2003-04-06 03:18:29.000000000 -0400
3 @@ -9,7 +9,7 @@
4  echo Installing the Samba Web Administration Tool
5  
6  LANGS=". `cd $SRCDIR../swat/; /bin/echo lang/??`"
7 -echo Installing langs are `cd $SRCDIR../swat/lang/; /bin/echo ??`
8 +echo Installing the following additional langs: `cd $SRCDIR../swat/lang/; /bin/echo ??`
9  
10  for ln in $LANGS; do 
11   SWATLANGDIR=$SWATDIR/$ln
12 @@ -23,21 +23,17 @@
13         fi
14      fi
15   done
16 -done
17 -
18 -# Install images
19 -for ln in $LANGS; do
20  
21 -for f in $SRCDIR../swat/$ln/images/*.gif; do
22 + # Install images
23 + for f in $SRCDIR../swat/$ln/images/*.gif; do
24        FNAME=$SWATDIR/$ln/images/`basename $f`
25        echo $FNAME
26        cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
27        chmod 0644 $FNAME
28 -done
29 -
30 -# Install html help
31 + done
32  
33 -for f in $SRCDIR../swat/$ln/help/*.html; do
34 + # Install html help
35 + for f in $SRCDIR../swat/$ln/help/*.html; do
36        FNAME=$SWATDIR/$ln/help/`basename $f`
37        echo $FNAME
38        if [ "x$BOOKDIR" = "x" ]; then
39 @@ -49,31 +45,31 @@
40        cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
41        rm -f $f
42        chmod 0644 $FNAME
43 -done
44 -
45 -# Install html documentation
46 -
47 -for f in $SRCDIR../docs/htmldocs/*.html; do
48 -      FNAME=$SWATDIR/help/`basename $f`
49 -      echo $FNAME
50 -      cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
51 -      chmod 0644 $FNAME
52 -done
53 -
54 -# Install "server-side" includes
55 + done
56  
57 -for f in $SRCDIR../swat/$ln/include/*.html; do
58 + # Install "server-side" includes
59 + for f in $SRCDIR../swat/$ln/include/*.html; do
60        FNAME=$SWATDIR/$ln/include/`basename $f`
61        echo $FNAME
62        cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
63        chmod 0644 $FNAME
64 + done
65  done
66  
67 +# Install html documentation
68 +for f in $SRCDIR../docs/htmldocs/*.html; do
69 +      FNAME=$SWATDIR/help/`basename $f`
70 +      echo $FNAME
71 +      ln -s ../../../doc/samba-doc/htmldocs/`basename $f` $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
72 +#      chmod 0644 $FNAME
73  done
74  
75  # Install Using Samba book
76  
77 -if [ "x$BOOKDIR" != "x" ]; then
78 +# For Debian we do not install anything here, we just create a symlink
79 +#      pointing to /usr/share/doc/samba-doc/htmldocs/using_samba/ in
80 +#      debian/rules (peloy@debian.org)
81 +if /bin/false; then
82  
83      # Create directories
84