$OpenBSD: patch-install-sh,v 1.1.1.1 2005/06/17 02:57:31 jolan Exp $
--- install-sh.orig	Thu Dec  9 09:27:15 2004
+++ install-sh	Mon Jun  6 21:47:13 2005
@@ -207,7 +207,7 @@ do
   fi
 
   # This sed command emulates the dirname command.
-  dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+  dstdir=`echo "$dst" | sed -e 's,/$,,g' -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
 
   # Make sure that the destination directory exists.
 
