ciembor
ciembor

Reputation: 7335

Install script for perl script

I have simple perl script and I want to make install script which install dependencies (perl modules) and copy my file.perl to /usr/share/path asking about password if necessary. I found that there are some solutions for installing perl modules (Makefile.PL, Build.PL etc.). But my script isn't module. How should I attempt it?

Upvotes: 1

Views: 303

Answers (1)

J-16 SDiZ
J-16 SDiZ

Reputation: 26930

Makefile.PL/ExtUtils::MakeMaker support a EXE_FILES parm for perl script, you can see how App::Ack do this or check this tutorial. Just set the prefix to your directory and it should do the work for you.

Upvotes: 4

Related Questions