Re: Howto Create a Auto-Extract Package with Shell Script & tar ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jean-Philippe Ouellet
Date: Saturday, April 10, 2010 - 2:22 am

On 4/9/10 9:17 PM, Aaron Lewis wrote:
indeed.

In this case, your shell script relies on the destination machine 
already having the utilities needed to decompress the files.

 From the man page of tar(1):
  -j    Compress archive using bzip2.  The bzip2 utility must be in-
     stalled separately.

In the case of OpenBSD, bzip2 is not installed by default. So if the 
interest here is portability, you are not going down the right path. I 
would suggest something else, like gzip.

Again from the man page of tar:
  -z    Compress archive using gzip(1).

Creating such a package will *not* allow you to port it to any 
UNIX/Linux system for 2 reasons (that I can think of). 1) bzip2 might 
not be present. 2) I could be wrong (having never needed to install 
fonts from their vendors), but I'd be willing to bet that fonts don't go 
in the same place on every system.

If you are really only trying to distribute a package of fonts, you're 
better off just distributing it as is, and telling people where to 
extract it on a given system. If you look at most bundles of files in 
unix, they are .tar.gz or .tgz. If everybody does it, there must be a 
reason for it. Simpler is always better.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Howto Create a Auto-Extract Package with Shell Script ..., Jean-Philippe Ouellet, (Sat Apr 10, 2:22 am)
Re: Howto Create a Auto-Extract Package with Shell Script ..., Stuart Henderson, (Sat Apr 10, 3:25 am)
Re: [SOLVED] Re: Howto Create a Auto-Extract Package with ..., Stuart Henderson, (Sat Apr 10, 4:13 am)