git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/lib
to generate packfile, and then
  use PAR 'gitweb.par';
in gitweb.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Tatsuhiko MiyagawaNext: Jakub Narebski
Message 4 of 8 in “Re: [spf:guess,iffy] Re: "Integrated Web Client for git" GSoC proposal”
  1. Jakub NarebskiApr 16, 2010
  2. Sam VilainApr 17, 2010
  3. Tatsuhiko MiyagawaApr 17, 2010
  4. Jakub NarebskiApr 17, 2010
  5. Jakub NarebskiApr 17, 2010
  6. Jakub NarebskiApr 16, 2010
  7. Fwd: Re: "Integrated Web Client for git" GSoC proposalPavan Kumar Sunkara, Apr 17, 2010
  8. Jakub NarebskiApr 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.