diff options
author | Guido van Rossum <guido@python.org> | 1998-05-05 20:39:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-05 20:39:58 +0000 |
commit | 2d9f1e53de28093c2238f17a8f16a56a523914c3 (patch) | |
tree | 1b50e6e2f6b468ad424843d7e9666f235172db6c | |
parent | d699758c77369c4b86fcd7eeeb975acca37c15a9 (diff) | |
download | cpython-2d9f1e53de28093c2238f17a8f16a56a523914c3.tar.gz |
Avoid using dirname; sed can do this just as well...
-rwxr-xr-x | install-sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install-sh b/install-sh index 0ff4b6a08e..98204c558a 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 |