|
From: Tatsuro M. <tma...@ya...> - 2009-12-03 02:52:59
|
Hello
--- Petr Mikulikwrote:
> > The directory constitution is
> >
> > gnuplot/bin/wgnuplot.exe
> > gnuplot/bin/wgnuplot_pipes.exe
> > gnuplot/bin/gnuplot.exe
> > :
> > gnuplot/bin/share/PostScript/(8859-1.ps etc.)
> > gnuplot/bin/share/js/(canvasmath.js etc.)
> > gnuplot/bin/share/lua/share/lua/(gnuplot-tikz.lua etc.)
> > gnuplot/bin/etc/fonts/fonts.conf
> >
> > If I just rename 'bin' to 'binaries', everything works as expected.
> >
> > The other change that works
> > gnuplot/bin/wgnuplot.exe
> > gnuplot/bin/wgnuplot_pipes.exe
> > gnuplot/bin/gnuplot.exe
> > :
> > gnuplot/share/PostScript/(8859-1.ps etc.)
> > gnuplot/share/share/js/(canvasmath.js etc.)
> > gnuplot/share/lua/share/lua/(gnuplot-tikz.lua etc.)
> > gnuplot/etc/fonts/fonts.conf
> >
> > The second is standard unixy directory constitution.
> > In this case, everything works correctly.
>
> Grepping for "bin", here seems to be the reason:
>
> winmain.c, line 316 (in function main() / WinMain()):
>
> if (_fstrlen(szModuleName) >= 5 &&
> _fstrnicmp(&szModuleName[_fstrlen(szModuleName)-5], "\\bin\\", 5) == 0)
> {
> int len = _fstrlen(szModuleName)-4;
> szPackageDir = (LPSTR)farmalloc(len+1);
> CheckMemory(szPackageDir);
> _fstrncpy(szPackageDir, szModuleName, len);
> szPackageDir[len] = '\0';
> }
> else
> szPackageDir = szModuleName;
>
> So this "unixish" behaviour is intentional, see ChangeLog:
>
> 2008-10-11 Michael Goffioul <mic...@gm...>
>
> * src/win/winmain.h src/win/winmain.c (WinMain): Compute new variable
> szPackageDir from szModuleName, stripping possible "\bin\" at the end.
>
> * term/post.trm (PS_open_prologue_file): Use szPackageDir instead of
> szModuleName.
>
>
> => I will rename "bin" directory in gp44rc1win32.zip to "binary".
Oh! Great!
I will follow your way.
This should be noted in the case gnuplot used in "bin" directory in octave etc.
I have been have a problem that I cannot get ps graphics if gnuplot installed in 'bin' directory of
octave.
I have moved 'share' directory move to bin/../share, it worked!!
However, in the case above, the name of share/PostScript seem to not be appropriate because the
contents in share/PostScript is for gnuplot but not for PostScript. This will give confusion.
In cygwin (perhaps unix also) , share/gnuplot/x.x/Postscript (x.x is version number e.g, 4.5).
I would like to make structure of the directory 'share' being the same as that in unix ( and cygwin).
That makes things simple, I think.
Regards
Tatsuro
--------------------------------------
Learn more about HIV/AIDS - Red Ribbon Campaign 2009
http://pr.mail.yahoo.co.jp/redribbon/
|