|
From: Alan W. I. <ir...@be...> - 2002-07-01 19:14:26
|
On Mon, 1 Jul 2002, Vince Darley wrote:
> PL_LIBRARY is the environment variable you can set (see tclAPI.c:
> static char initScript[] =
> "tcl_findLibrary plplot 5.1 \"\" plplot.tcl PL_LIBRARY pllibrary";
> ). Alternatively the 'pllibrary' Tcl variable can be set.
>
OK.
setenv PL_LIBRARY .
made everything work fine in plplot/tmp. You will probably have to set that
environment variable to something else for the installed version to work on
Linux if you use a non-standard prefix. Anyhow, because everything is
working I committed your 11 file changes to CVS. I am afraid I used one
giant commit with a rather generic commit message for all 11 files because I
didn't follow the details of your changes, but in future to make it easier
for all of us to follow the changes it would be better to have more
fine-grained commit messages appropriate to much smaller groups of files
that were being committed at one time.
Vince, you are a full member of the core developer team for plplot so I
assume you have full access to cvs. I was glad to help in this case to get
the line-endings right, but I assume you can do that for yourself from now
on. Therefore I am going to ignore your subsequent patch since you can put
that into cvs yourself.
Note the informal rule on file line endings is Linux/Unix line endings "nl"
everywhere in the tree except the windows specific part of the tree such as
sys/win32/msdev/ where windows line endings "cr nl" should be used. I
have Linux programmes that change Linux line endings to windows line endings
and I use the tr command to go from windows line endings to Linux line
endings. Here is the c code for Linux to windows, and I am sure you
can adapt it to go the other way (or use the tr command if that is available
on your system).
#include <stdio.h>
/* copy input to output exactly except for translating \n to \r\n.
* Thus, this code is a utility for translating a file from unix line
* termination to windows line termination.
*/
main()
{
int c;
int cr = '\r';
while ((c = getchar()) != EOF)
{
if (c == '\n') putchar(cr);
putchar(c);
}
}
Happy Canada Day!
Alan
|