From: Andrey Repin <anrdaemon@yandex.ru>
To: Andrey Repin <cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: Broken links in Cygwin installation
Date: Mon, 22 Aug 2022 21:43:14 +0300 [thread overview]
Message-ID: <1374387774.20220822214314@yandex.ru> (raw)
In-Reply-To: <1755994279.20220822191254@yandex.ru>
Greetings, Andrey Repin!
> Small background: I've been moving my Cygwin installations around to match
> path locations between different systems. I've ended up with a lot of broken
> symlinks, between which some are actually lost.
> I've baked a PowerShell script to solve the issue (see attachment).
> Also in attachment a powershell startup wrapper for /usr/local/bin/
find -L / -xdev -type l -execdir fixmylinks.ps1 OldPathFragment New\\PathFragment '{}' +
In all broken links, script will look for "OldPathFragment", and if replacing
the fragment with "New\\PathFragment" produce valid existing path, it will
create a new link in place.
--
With best regards,
Andrey Repin
Monday, August 22, 2022 21:38:22
Sorry for my terrible english...
prev parent reply other threads:[~2022-08-22 18:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-21 11:42 Andrey Repin
2022-08-21 15:09 ` Ken Brown
2022-08-22 16:12 ` Andrey Repin
2022-08-22 18:43 ` Andrey Repin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374387774.20220822214314@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).