summaryrefslogtreecommitdiff
path: root/gcc/fixproto
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-05 07:51:14 +0000
committerRichard Stallman <rms@gnu.org>1993-11-05 07:51:14 +0000
commit12a3cb7a2e2ba95aa90b951ce2b69a1088f36808 (patch)
treed50c40c81265b64483d0444f3e187ec6529c1942 /gcc/fixproto
parentbc2eeab25691655e7225667273bafd72c34e8266 (diff)
downloadgcc-12a3cb7a2e2ba95aa90b951ce2b69a1088f36808.tar.gz
Don't scan sub-directories whose names end in CC
or contain ++ - these are probably C++ directories. From-SVN: r6007
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-xgcc/fixproto5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fixproto b/gcc/fixproto
index c21f1c1ea0a..23052a20713 100755
--- a/gcc/fixproto
+++ b/gcc/fixproto
@@ -135,8 +135,11 @@ for code in ALL STD ; do
newdirs=
for d in $dirs ; do
# Find all directories under $d, relative to $d, excluding $d itself.
+ # Assume directory names ending in CC or containing ++ are
+ # for C++, so skip those.
subdirs="$subdirs "`cd $rel_source_dir/$d; find . -type d -print | \
- sed -e '/^\.$/d' -e "s|^\./|${d}/|" -e 's|^\./||'`
+ sed -e '/^\.$/d' -e "s|^\./|${d}/|" -e 's|^\./||' \
+ -e '/CC$/d' -e '/\+\+/d'`
links=
links=`cd $rel_source_dir; find $d/. -type l -print | \
sed -e "s|$d/./|$d/|" -e 's|^\./||'`