summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsource3/script/installbin.sh8
-rwxr-xr-xsource3/script/installdat.sh2
-rwxr-xr-xsource3/script/installdirs.sh8
-rwxr-xr-xsource3/script/installman.sh2
-rwxr-xr-xsource3/script/installmodules.sh4
-rw-r--r--source3/script/installmsg.sh2
-rwxr-xr-xsource3/script/installscripts.sh2
-rwxr-xr-xsource3/script/installswat.sh2
-rwxr-xr-xsource3/script/uninstallbin.sh8
-rwxr-xr-xsource3/script/uninstallman.sh2
-rwxr-xr-xsource3/script/uninstallmodules.sh4
-rwxr-xr-xsource3/script/uninstallscripts.sh2
12 files changed, 24 insertions, 22 deletions
diff --git a/source3/script/installbin.sh b/source3/script/installbin.sh
index fe3bc4c48ae..f9fd5298c09 100755
--- a/source3/script/installbin.sh
+++ b/source3/script/installbin.sh
@@ -2,10 +2,10 @@
INSTALLPERMS=$1
DESTDIR=$2
-BASEDIR=$3
-BINDIR=$4
-LIBDIR=$5
-VARDIR=$6
+BASEDIR=`echo $3 | sed 's/\/\//\//g'`
+BINDIR=`echo $4 | sed 's/\/\//\//g'`
+LIBDIR=`echo $5 | sed 's/\/\//\//g'`
+VARDIR=`echo $6 | sed 's/\/\//\//g'`
shift
shift
shift
diff --git a/source3/script/installdat.sh b/source3/script/installdat.sh
index 7ff88ac788e..4a5b1de5dc8 100755
--- a/source3/script/installdat.sh
+++ b/source3/script/installdat.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#fist version March 2002, Herb Lewis
-DATDIR=$1
+DATDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2/
echo Installing dat files in $DATDIR
diff --git a/source3/script/installdirs.sh b/source3/script/installdirs.sh
index 9557b86d3bc..1db46b82ff2 100755
--- a/source3/script/installdirs.sh
+++ b/source3/script/installdirs.sh
@@ -1,11 +1,13 @@
#!/bin/sh
while ( test -n "$1" ); do
- if [ ! -d $1 ]; then
- mkdir -p $1
+
+ DIRNAME=`echo $1 | sed 's/\/\//\//g'`
+ if [ ! -d $DIRNAME ]; then
+ mkdir -p $DIRNAME
fi
- if [ ! -d $1 ]; then
+ if [ ! -d $DIRNAME ]; then
echo Failed to make directory $1
exit 1
fi
diff --git a/source3/script/installman.sh b/source3/script/installman.sh
index 5b6bba69edb..c7a8f450951 100755
--- a/source3/script/installman.sh
+++ b/source3/script/installman.sh
@@ -5,7 +5,7 @@
# modified to accomodate international man pages (inspired
# by Japanese edition's approach)
-MANDIR=$1
+MANDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2/
langs=$3
diff --git a/source3/script/installmodules.sh b/source3/script/installmodules.sh
index c80da763688..f7c74733381 100755
--- a/source3/script/installmodules.sh
+++ b/source3/script/installmodules.sh
@@ -1,8 +1,8 @@
#!/bin/sh
INSTALLPERMS=$1
-BASEDIR=$2
-LIBDIR=$3
+BASEDIR=`echo $2 | sed 's/\/\//\//g'`
+LIBDIR=`echo $3 | sed 's/\/\//\//g'`
shift
shift
shift
diff --git a/source3/script/installmsg.sh b/source3/script/installmsg.sh
index 30ad404aa0d..5a41fe1ca8d 100644
--- a/source3/script/installmsg.sh
+++ b/source3/script/installmsg.sh
@@ -2,7 +2,7 @@
# first version (Sept 2003) written by Shiro Yamada <shiro@miraclelinux.com>
# based on the first verion (March 2002) of installdat.sh written by Herb Lewis
-MSGDIR=$1
+MSGDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2/
echo Installing msg files in $MSGDIR
diff --git a/source3/script/installscripts.sh b/source3/script/installscripts.sh
index bff5423e7cb..81608c3682c 100755
--- a/source3/script/installscripts.sh
+++ b/source3/script/installscripts.sh
@@ -3,7 +3,7 @@
# 5 July 96 Dan.Shearer@UniSA.Edu.Au Don't hardcode script names, get from Make
INSTALLPERMS=$1
-BINDIR=$2
+BINDIR=`echo $2 | sed 's/\/\//\//g'`
shift
shift
diff --git a/source3/script/installswat.sh b/source3/script/installswat.sh
index bd2f8da2348..7841a2a7b50 100755
--- a/source3/script/installswat.sh
+++ b/source3/script/installswat.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#first version March 1998, Andrew Tridgell
-SWATDIR=$1
+SWATDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2/
BOOKDIR=$SWATDIR/using_samba
diff --git a/source3/script/uninstallbin.sh b/source3/script/uninstallbin.sh
index a8bbdea7afd..5de936fccfd 100755
--- a/source3/script/uninstallbin.sh
+++ b/source3/script/uninstallbin.sh
@@ -2,10 +2,10 @@
#4 July 96 Dan.Shearer@UniSA.edu.au
INSTALLPERMS=$1
-BASEDIR=$2
-BINDIR=$3
-LIBDIR=$4
-VARDIR=$5
+BASEDIR=`echo $2 | sed 's/\/\//\//g'`
+BINDIR=`echo $3 | sed 's/\/\//\//g'`
+LIBDIR=`echo $4 | sed 's/\/\//\//g'`
+VARDIR=`echo $5 | sed 's/\/\//\//g'`
shift
shift
shift
diff --git a/source3/script/uninstallman.sh b/source3/script/uninstallman.sh
index 3126709831f..0fea11cd1b2 100755
--- a/source3/script/uninstallman.sh
+++ b/source3/script/uninstallman.sh
@@ -6,7 +6,7 @@
# by Japanese edition's approach)
-MANDIR=$1
+MANDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2
langs=$3
diff --git a/source3/script/uninstallmodules.sh b/source3/script/uninstallmodules.sh
index 30582a39fac..ac83af3dc90 100755
--- a/source3/script/uninstallmodules.sh
+++ b/source3/script/uninstallmodules.sh
@@ -2,8 +2,8 @@
#4 July 96 Dan.Shearer@UniSA.edu.au
INSTALLPERMS=$1
-BASEDIR=$2
-LIBDIR=$3
+BASEDIR=`echo $2 | sed 's/\/\//\//g'`
+LIBDIR=`echo $3 | sed 's/\/\//\//g'`
shift
shift
shift
diff --git a/source3/script/uninstallscripts.sh b/source3/script/uninstallscripts.sh
index 13104acedd8..cf7fd719993 100755
--- a/source3/script/uninstallscripts.sh
+++ b/source3/script/uninstallscripts.sh
@@ -2,7 +2,7 @@
# 5 July 96 Dan.Shearer@UniSA.Edu.Au - almost identical to uninstallbin.sh
INSTALLPERMS=$1
-BINDIR=$2
+BINDIR=`echo $2 | sed 's/\/\//\//g'`
shift
shift