nowox
nowox

Reputation: 29116

Generate a single perl file from multiple files (.pm + .pl)

A good example of what I would like to do is Ack. The original sources available on github are made of several packages and one main Perl file.

However, the author also offers a single Perl file that include all the packages. From the source I can tell this file was auto-generated and I would like to know how it is done.

I tried to git clone the sources and make the module with perl Makefile.PL && make && make install but I don't get any auto-generated file. I guess the answer is somewhere else.

Is there any tool for doing such things?

Upvotes: 0

Views: 75

Answers (1)

ikegami
ikegami

Reputation: 386396

ack uses a home-rolled solution accessed via make ack-standalone.

You should have a look at App::FatPacker since that's what it's all about.

Upvotes: 2

Related Questions