aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-05 20:39:58 +0000
committerGuido van Rossum <guido@python.org>1998-05-05 20:39:58 +0000
commitc594baa5526ddf04e34bc0076f52a5d98b1c5370 (patch)
tree5b0ea41bb9b586a940b9e29de450402d8e03006f /install-sh
parentPatches to make the proxy code work again. (Why does that always break (diff)
downloadcpython-c594baa5526ddf04e34bc0076f52a5d98b1c5370.tar.gz
cpython-c594baa5526ddf04e34bc0076f52a5d98b1c5370.tar.bz2
cpython-c594baa5526ddf04e34bc0076f52a5d98b1c5370.zip
Avoid using dirname; sed can do this just as well...
Diffstat (limited to 'install-sh')
-rwxr-xr-xinstall-sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install-sh b/install-sh
index 0ff4b6a08e8..98204c558a5 100755
--- a/install-sh
+++ b/install-sh
@@ -96,7 +96,8 @@ fi
# Make a temp file name in the proper directory.
-dstdir=`dirname $dst`
+# Avoid dirname, which doesn't exist everywhere...
+dstdir=`echo $dst | sed 's,/[^/]*$,,'`
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name