From: Guido van Rossum Date: Tue, 5 May 1998 20:39:58 +0000 (+0000) Subject: Avoid using dirname; sed can do this just as well... X-Git-Tag: v1.5.2a1~758 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c594baa5526ddf04e34bc0076f52a5d98b1c5370;p=thirdparty%2FPython%2Fcpython.git Avoid using dirname; sed can do this just as well... --- diff --git a/install-sh b/install-sh index 0ff4b6a08e80..98204c558a54 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