$OpenBSD: patch-install-sh,v 1.1.1.1 2005/06/17 02:57:30 jolan Exp $
--- install-sh.orig	Sun Mar 20 11:43:33 2005
+++ install-sh	Mon Jun  6 22:42:33 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.
 
