]> granicus.if.org Git - python/commitdiff
Avoid using dirname; sed can do this just as well...
authorGuido van Rossum <guido@python.org>
Tue, 5 May 1998 20:39:58 +0000 (20:39 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 5 May 1998 20:39:58 +0000 (20:39 +0000)
install-sh

index 0ff4b6a08e8077bdb9374c2d1bc8bec4e1f1eea4..98204c558a540dfb19d1c3cc4582bdb50a3a5a7a 100755 (executable)
@@ -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