Valerio Messina wrote:

> hi,
> I'm packaging Nedit5.5 (compiled on cygwin) with the NSIS opensource 
> installer: http://nsis.sourceforge.net/
> to create an easy Win32 distribution pack.
> The work is based on the pre-compiled package at this address:
> http://nedit.gmxhome.de/winport.html

nice, I didn't have much time to maintain this package.

> but with some add and changes:

I'll take a look.

> I have one problem with 'autoload.nm' macro file.
> In the 'start-nc.sh' script I inserted this line:
> export ProgramFiles=`./cygwin/bin/shell-co/cygpath -u "$PROGRAMFILES"`

Then ProgramFiles is an environment variable.

> Now 'autoload.nm' is:
> load_macro_file("$ProgramFiles/nedit/cygspecial.nm")

Ah, no, this is an NEdit macro with macro strings. They have no
shell syntax. Inside autoload.nm, write

ProgramFiles = getenv("ProgramFiles")
load_macro_file(ProgramFiles "/nedit/cygspecial.nm")

does what you want. (If you need to have a global variable,
one that is available in all macros, write

$ProgramFiles = getenv("ProgramFiles")
load_macro_file($ProgramFiles "/nedit/cygspecial.nm")

> And more, what quoting are needed to preserve the space in path?

Don't know, just try it out.

Best wishes
Jörg
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to