aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap/install-sh
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-02-13 08:23:39 +0000
committerXin LI <delphij@FreeBSD.org>2017-02-13 08:23:39 +0000
commitada6f083b93b4adce9c3b3ba00112528244a3b86 (patch)
treecb89d2b7657c6b206bb28e5a9ab17ef556d64986 /contrib/libpcap/install-sh
parent5dbc2ac93dbe46c66b0159f9cbf67146ae43656d (diff)
parentc8c6d70e300aa9261c4766502c179fc4cd2b22a0 (diff)
downloadsrc-ada6f083b93b4adce9c3b3ba00112528244a3b86.tar.gz
src-ada6f083b93b4adce9c3b3ba00112528244a3b86.zip
Notes
Diffstat (limited to 'contrib/libpcap/install-sh')
-rwxr-xr-xcontrib/libpcap/install-sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libpcap/install-sh b/contrib/libpcap/install-sh
index ebc66913e940..b44de0989d2f 100755
--- a/contrib/libpcap/install-sh
+++ b/contrib/libpcap/install-sh
@@ -115,7 +115,7 @@ fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
-
+
if [ -d $dst ]; then
instcmd=:
else
@@ -124,7 +124,7 @@ if [ x"$dir_arg" != x ]; then
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
-# might cause directories to be created, which would be especially bad
+# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
@@ -134,7 +134,7 @@ else
echo "install: $src does not exist"
exit 1
fi
-
+
if [ x"$dst" = x ]
then
echo "install: no destination specified"
@@ -201,17 +201,17 @@ else
# If we're going to rename the final executable, determine the name now.
- if [ x"$transformarg" = x ]
+ if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
- dstfile=`basename $dst $transformbasename |
+ dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
- if [ x"$dstfile" = x ]
+ if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
@@ -242,7 +242,7 @@ else
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
- $doit $mvcmd $dsttmp $dstdir/$dstfile
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&