Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl script + tgz = installer

Reply
Thread Tools

Perl script + tgz = installer

 
 
dima@inotech.ru
Guest
Posts: n/a
 
      10-12-2005
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???

 
Reply With Quote
 
 
 
 
Josef Moellers
Guest
Posts: n/a
 
      10-12-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett

 
Reply With Quote
 
 
 
 
John Bokma
Guest
Posts: n/a
 
      10-12-2005
(E-Mail Removed) wrote:

> 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.

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tarfile doesn't work with tgz files? Robert Dailey Python 7 05-16-2009 06:47 PM
search in tgz file content News.Individual.NET Python 2 10-13-2004 04:08 PM
Python-2.1.x.tgz Robin Becker Python 1 08-18-2004 01:59 PM
Download pyples-11.tgz (under FreeMindLicense) RDJ Python 0 04-13-2004 07:27 AM
Fw: Python-2.3c2.tgz installation Sanjiv Kumar Python 0 07-29-2003 08:59 PM



Advertisments