From: Brian Havard Date: Wed, 3 May 2000 02:42:18 +0000 (+0000) Subject: The 'portable dirname' shouldn't leave a trailing / on the directory name X-Git-Tag: APACHE_2_0_ALPHA_4~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6d1cf01a2256427f6aacdcb173899637972eeed;p=apache The 'portable dirname' shouldn't leave a trailing / on the directory name 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 --- diff --git a/build/fastgen.sh b/build/fastgen.sh index 51779ce73c..3dc252df08 100755 --- a/build/fastgen.sh +++ b/build/fastgen.sh @@ -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 <