On 2010-04-10, Aaron Lewis <[email protected]> wrote:
>
> Hi,
>       I'm trying to make a small binary package , which aims to install some
> X11 fonts to /usr/share/fonts/truetype.

/usr/share/fonts/truetype -> not portable

>       Creating such a binary package will allow me to port it on any
> UNIX/Linux system , very useful.
>
>       Firstly i need to compress my fonts to a Font_Name.tar.bz2 , if i want
> to put the extract script and Font_Name.tar.bz2 together  , a single
> bundle , howto archive it ?
>
>       Right now , i tried to append the Archive to the script file , Then try
> to read through the `setup file' except for the first 5 lines.
>
>       #!/bin/bash

/bin/bash -> not portable

> tail +5 $0 | tar xvf - -C /tmp
> exit 0
> #========================
> //Append Tar.Bz2 file

bz2 -> not as portable as it could be

relying on tar to autodetect compressed archives -> not portable

running some random downloaded shell archive with sufficient
permissions to install to /usr/share without a good way to inspect
what it's going to overwrite -> not safe

> Doesn't looks like a good way , anyone could help ?

the simple portable safe way is a tar.gz with a README and ideally
a Makefile.  people know how to use these.  use a variable for the install
target so people can override it on the make(1) command line.

Reply via email to