Perl script + tgz = installer

D

dima

Hello all!

I write simple installer for my project.
1) I make distr.tgz tarball with bin's and cfg's
2) I write install.pl script

But I want to implement "bin"-installer, e.g.
1)cat install.pl > install.bin
2)cat distr.tgz >> install.bin
3) ???
4)./install.bin #install all

What should I do on stage 3???
 
J

Josef Moellers

Hello all!

I write simple installer for my project.
1) I make distr.tgz tarball with bin's and cfg's
2) I write install.pl script

But I want to implement "bin"-installer, e.g.
1)cat install.pl > install.bin
2)cat distr.tgz >> install.bin
3) ???
4)./install.bin #install all

What should I do on stage 3???

You could put the stuff to install into a __DATA__ section and read it
via the DATA filehandle. Then stage3 would do nothing, but the last line
of your install.pl should read "__DATA__"

Josef
 
J

John Bokma

Hello all!

I write simple installer for my project.
1) I make distr.tgz tarball with bin's and cfg's
2) I write install.pl script

But I want to implement "bin"-installer, e.g.
1)cat install.pl > install.bin
2)cat distr.tgz >> install.bin
3) ???
4)./install.bin #install all

What should I do on stage 3???

Have a look at PAR which is similar to JAR.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top