summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-02-18 21:07:15 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-02-18 21:07:15 +0000
commit188944266b6c9e13f900a82c69eb943f877e05e7 (patch)
tree0c0a07b5ab7b2766b680987a413d31454282f14f /scripts
parentd631bf76adcd02c3a783ecbec5f221cbb3dd4b98 (diff)
downloadquilt-188944266b6c9e13f900a82c69eb943f877e05e7.tar.gz
*** empty log message ***
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 1148c97..dd8b821 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -43,13 +43,15 @@ quote_re()
basename()
{
- local path="${1%%/}"
+ local path="${1//\/\//}"
+ path="${path%%/}"
echo "${path##*/}"
}
dirname()
{
- local path="${1%%/}"
+ local path="${1//\/\//}"
+ path="${path%%/}"
local basename="${path##*/}"
path="${path:0:${#path}-${#basename}}"
[ x"$path" != x"/" ] && path="${path%/}"