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)


Andrew Schulman skrev 2012-01-24 13:04:
>>> How should the batch file determine the Cygwin installation location?
>>> Just assuming "C:\cygwin" will not work for everyone.
>>
>> The batch file could be generated in a postinstall script via sed or gawk.
> 
> 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?

Cheers,
Peter


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