aboutsummaryrefslogtreecommitdiff
path: root/fixincludes
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2017-10-13 15:28:41 +0000
committerJeff Law <law@gcc.gnu.org>2017-10-13 09:28:41 -0600
commitb015bcbb16af842c806fcba44252a01038b32ef6 (patch)
tree94cbb94072082fab111336bc19263896792daac1 /fixincludes
parent65991ea3f80607b9d771055770c518c81f2a63a6 (diff)
downloadgcc-b015bcbb16af842c806fcba44252a01038b32ef6.zip
gcc-b015bcbb16af842c806fcba44252a01038b32ef6.tar.gz
gcc-b015bcbb16af842c806fcba44252a01038b32ef6.tar.bz2
fixinc.in (dirname): Change sed from 's|[^/]*/||' to 's|[^/]*//*||'.
2017-10-13 Mike Frysinger <vapier@chromium.org> * fixinc.in (dirname): Change sed from 's|[^/]*/||' to 's|[^/]*//*||'. From-SVN: r253730
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/ChangeLog5
-rwxr-xr-xfixincludes/fixinc.in2
2 files changed, 6 insertions, 1 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index ffd1718..1f29148 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-13 Mike Frysinger <vapier@chromium.org>
+
+ * fixinc.in (dirname): Change sed from 's|[^/]*/||' to
+ 's|[^/]*//*||'.
+
2017-06-12 Doug Rupp <rupp@adacore.com>
* inclhack.def (AAB_vxworks_stdint): Remove hack.
diff --git a/fixincludes/fixinc.in b/fixincludes/fixinc.in
index 15cbaa2..cd0b458 100755
--- a/fixincludes/fixinc.in
+++ b/fixincludes/fixinc.in
@@ -344,7 +344,7 @@ if $LINKS; then
mkdir $component >/dev/null 2>&1
cd $component
dirmade=$dirmade/$component
- dirname=`echo $dirname | sed -e 's|[^/]*/||'`
+ dirname=`echo $dirname | sed -e 's|[^/]*//*||'`
done
fi