Nathan Aubrey wrote:
> How do you create a script that has the tar file inside of it? Similar 
> to what nVidia does with the driver, and so many other companies, how do 
> you create teh executable script with an archive in it? I would like to 
> be able to do that with a few things...

I'm not sure why this is marked OT... this seems pretty on topic to me.

Anyway, what you generally do is encode the binary file into a text
format, include it in the shell script as a HERE document, and then have
the script decode it and execute the result afterwards.

The 'shar' utility does most of this.  It takes a binary file (or files)
and uuencodes them.  It then puts a shell wrapper around the uuencoded
text so that all you have to do is run the script to extract the files.

Attachment: signature.asc
Description: OpenPGP digital signature

---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Reply via email to