Re: [spf:guess,iffy] Re: "Integrated Web Client for git" GSoC proposal
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Apr 17, 2010, 12:50 UTC
- Message-ID
- <m3vdbqdz1b.fsf@localhost.localdomain>
- In-Reply-To
- <loom.20100417T081957-371@post.gmane.org>
Restored some of Cc list...
Tatsuhiko Miyagawa <miyagawa@bulknews.net> writes:
> Sam Vilain <sam <at> vilain.net> writes:
> > It should be possible for the script to figure out what filesystem path it > > is being run from, perhaps find a local lib/ dir and then add that to @INC.
FindBin, Dir::Self (or just relevant code from it), and then "use lib <dir>".
Show 6 quoted lines
> > In shell scripts you just use FindBin, I don't know whether that is still > > expected to work from eg mod_perl but there's bound to be a solution for > > that. So yeah I'd say just aim to ship lots of .pm files in a nearby dir > > alongside the script... > > Or use App::FatPacker.
But try to make this build-time dependency optional. I wonder also what is performance cost of using App::FatPacker trick.
It is a bit pity that PAR is not in core. We could use
$ git archive --format=zip --output=gitweb.par --prefix=lib/ \
HEAD -- gitweb/libto generate packfile, and then
use PAR 'gitweb.par';
in gitweb.
-- Jakub Narebski Poland ShadeHawk on #git