Article View: gnu.gcc.help
Article #53092Re: make install-fixincludes loops forever under SunOS 4.1.2
From: hbf
Date: Tue, 17 Mar 1992 14:07
Date: Tue, 17 Mar 1992 14:07
20 lines
1211 bytes
1211 bytes
To stop fixincludes from looping over "recursive symlinks", replace this:
if $LINKS; then
files=`ls -LR | sed -n s/:$//p`
else
files=`find . -type d -print | sed '/^.$/d'`
fi
with this:
files=` find . -type d -print | sed '/^.$/d'
$LINKS && find . -type l -exec test -d '{}' \; -print`
It will still make the symlinks into directories and not symlinks, but
at least it won't loop. If I remember correctly, several versions of
fixincludes have been posted that make gcc-include into a more accurate
mirror of /usr/include, but none have made it into gcc so far.
Hallvard
Technical Details
Message-ID:
<9203171207.AAgandalf08884@gandalf.uio.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!usit.uio.NO!h.b.furusethReferences:
h.b.furuseth@usit.uio.NO (hbf)Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a031c0c34af3b756 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-03-17 04:44:43 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!usit.uio.NO!h.b.furuseth From: h.b.furuseth@usit.uio.NO (hbf) Subject: Re: make install-fixincludes loops forever under SunOS 4.1.2 Message-ID: <9203171207.AAgandalf08884@gandalf.uio.no> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet References: h.b.furuseth@usit.uio.NO (hbf) Distribution: gnu Date: Tue, 17 Mar 1992 14:07:27 GMT Lines: 20