[Dev] hardhat cygwin windows executable question
John Anderson
john at osafoundation.org
Wed Feb 23 10:16:33 PST 2005
Looks like it might be the familiar cygwin using the "wrong kind of
directory separator" problem -- notice the different kinds of "/" vs.
"\\". cygwin python thinks it's linux even though it's really windows,
and that causes problems when execuging windows programs. Similar
problems occur with end of lines. Hardhat has lots of cruft in it to
work around these kinds of problems.
John
Mike Taylor wrote:
> Ok, for the few remaining people that haven't just deleted this
> message purely from the subject line ...
>
> I'm in the final stages of testing the auto-generate of the windows
> installer and I've hit a snag.
>
> If I run "python ../hardhat/hardhat.py -D bar" from a dos prompt, it
> generates the installer just fine - the command it ran to do that
> shows up in hardhat.log looking like:
>
> [ HardHat ]: Building Setup.exe
> Executing: 'c:\\bin\\NSIS\\makensis.exe' 'makensis.exe' 'C:
> \\cygwin\\home\\mike\\osaf\\test\\internal\\installers\\win\\chandler.ns
> i'
> Current directory: C:\cygwin\home\mike\osaf\test
>
> looks good so far, but if I run it from cygwin, makensis.exe fails to
> "see" the chandler.nsi file - the output looks like this in hardhat.log:
>
> [ HardHat ]: Building Setup.exe
> Executing: '/cygdrive/c/bin/NSIS/makensis.exe' 'makensis.exe'
> '/home/mike/osaf/test/internal/installers/win/chandler.nsi'
> Current directory: /home/mike/osaf/test
>
> now running makensis.exe from the cygwin prompt manually lead me to
> find that:
>
> makensis.exe ../internal/installers/win/chandler.nsi
>
> works like a charm.
>
> So I then put in a check for cygwin, and if found, passed the
> parameter of "../internal/installers/win/chandler.nsi" to the
> executeCommand() call but that did not work!
>
> So the question is basically what am I missing :) It's late for me
> so I have stopped here before I start going down all kinds of weird
> paths.
>
> ---
> Bear
> http://code-bear.com
> PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29
>
>------------------------------------------------------------------------
>
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
>Open Source Applications Foundation "Dev" mailing list
>http://lists.osafoundation.org/mailman/listinfo/dev
>
>
More information about the Dev
mailing list