The
tick_twiki.pl
script has been moved to
twiki/tools
(as it should be). Running
perl tick_twiki.pl
gives this error:
bash-2.05$ perl tools/tick_twiki.pl
Can't locate setlib.cfg in
@INC
(
@INC
contains: . /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw /opt/csw/share/perl/csw /opt/csw/lib/perl/5.8.7 /opt/csw/share/perl/5.8.7 .) at tools/tick_twiki.pl line 37.
BEGIN failed--compilation aborted at tools/tick_twiki.pl line 38.
The header has this:
# THIS SCRIPT IS DESIGNED TO BE RUN FROM YOUR bin DIRECTORY.
# This is so it can pick up the right TWiki environment from
# setlib.cfg.
Since it makes sense to keep this and other scripts in
twiki/tools
, should we introduce a
setlib.cfg
in this directory?
--
PTh
Maybe. The reason I am somewhat reluctant is that we then end up with multiple setlib.cfg's to maintain. There are four alternatives:
- Execute all scripts when cd'd to bin
- Copy
setlib.cfg
and LocalLib.cfg
to tools
- Require that
../bin/setlib.cfg
resolves from tools
- Require that
setlib.cfg
be found in @INC
before running any script
Of these, 4 is my strong preference. The command-line for tick_twiki.pl would be:
perl -I ../bin tick_twiki.pl
(replace .. with the absolute path to the bin dir)
I changed the documentation accordingly.
SVN 8297
CC