]> granicus.if.org Git - apache/commitdiff
The 'portable dirname' shouldn't leave a trailing / on the directory name
authorBrian Havard <bjh@apache.org>
Wed, 3 May 2000 02:42:18 +0000 (02:42 +0000)
committerBrian Havard <bjh@apache.org>
Wed, 3 May 2000 02:42:18 +0000 (02:42 +0000)
as it causes double trailing / in some places which confuses some programs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85128 13f79535-47bb-0310-9956-ffa450edef68

build/fastgen.sh

index 51779ce73cb7263f4b21f65166307902f9f5d869..3dc252df089dadcb234ba5a857d579ae77a58d4f 100755 (executable)
@@ -73,7 +73,7 @@ fi
 for makefile in $@; do
   echo "creating $makefile"
 # portable dirname
-  dir=`echo $makefile|sed 's%[^/][^/]*$%%'`
+  dir=`echo $makefile|sed -e 's%[^/][^/]*$%%' -e 's%/$%%'`
   test -d "$dir/" || $mkdir_p "$dir/"
 
   (cat <<EOF