commit | c594baa5526ddf04e34bc0076f52a5d98b1c5370 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue May 05 20:39:58 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue May 05 20:39:58 1998 +0000 |
tree | 5b0ea41bb9b586a940b9e29de450402d8e03006f | |
parent | e0c0da98d85a343ec0578ce8ce690fb952118a0b [diff] [blame] |
Avoid using dirname; sed can do this just as well...
diff --git a/install-sh b/install-sh index 0ff4b6a..98204c5 100755 --- a/install-sh +++ b/install-sh
@@ -96,7 +96,8 @@ # 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