This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH, contrib] download_prerequisites: check for existing symlinks before making new ones
- From: Jeff Law <law at redhat dot com>
- To: Eric Gallager <egall at gwmail dot gwu dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Jul 2016 15:36:34 -0600
- Subject: Re: [PATCH, contrib] download_prerequisites: check for existing symlinks before making new ones
- Authentication-results: sourceware.org; auth=none
- References: <CAMfHzOtL-nbQe5OUxyFyS2RfLia_PDyY4ZOokV81iGn8Km5iHA@mail.gmail.com>
On 06/27/2016 08:10 PM, Eric Gallager wrote:
I'd really rather know why the "-f" flag didn't work for you. The whole
point of -f is to remove the destination file first.
The last time I ran ./contrib/download_prerequisites, I already had
previous symlinks set up from a previous run of the script, so `ln`
followed the existing symlinks and created the new ones in the
directories to which the symlinks pointed. This patch should fix that
by removing the old symlinks before creating new ones. (For some
reason the `-f` flag to `ln` that was already there wasn't enough for
me.) Tested by running the script and ensuring that the new isl
symlink pointed to the correct directory, and that there were no bad
symlinks in the old isl directory. Could someone commit this trivial
patch for me, or something like it? I don't have write access.