This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: symlinks: converting Windows shortcuts to cygwin style


On Mar  5 09:11, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> Does someone have a script that converts symbolic links from "Windows shortcuts with a special header and the R/O attribute set" to "plain files with a magic number, a path and the system attribute set".  (See "(no)winsymlinks" in <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>.)

Something like that

  for lnk in $(find . -xdev -type l)
  do
    tgt=$(readlink $lnk)
    rm -f "$lnk"
    ln -s "$tgt" "$lnk"
  done


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]