Restored some of Cc list... Tatsuhiko Miyagawa <miyagawa@xxxxxxxxxxxx> 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>". > > 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/lib to generate packfile, and then use PAR 'gitweb.par'; in gitweb. -- Jakub Narebski Poland ShadeHawk on #git -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html