This is the mail archive of the cygwin-apps 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: /rebase.sh (was Re: YA call for snapshot testing)


On Jan 24 11:01, Christopher Faylor wrote:
> On Tue, Jan 24, 2012 at 07:12:35AM -0500, Andrew Schulman wrote:
> >> > What's the supported way in a postinstall script to find the Cygwin
> >> > installation directory?  I thought of 'cat
> >> > /proc/registry/HKEY_CURRENT_USER/Software/Cygwin/something-or-other', but
> >> > it seems that there can be multiple installation locations stored there.
> >> 
> >> Will "cygpath -m /" do?
> >
> >Uh... right.  Thanks :)
> 
> The problem is finding cygpath isn't it?  If it's not in the path then
> you'll have to search for it.
> 
> You could look for the shortcut on the desktop I guess and infer the
> bin directory from that.

Setup always sets the current WD to the Cygwin root dir for every
postinstall process.  Also, since you create the .bat file from
a postinstall bash script, you can simply call /usr/bin/cygpath.


Corinna

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


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