Ken Moffat wrote:
> 2009/9/12 Dan McGhee <[email protected]>:
>
>
> If you do indeed need to specify the -j or -z because ubuntu is
> running an old version of tar, I've no idea how to do it tersely -
> I always structure my scripts verbosely with lots of ifs and so
> forth. You can extract the file suffix (provided it starts with
> a t and there isn't a preceding '.t' in the package name) with
> something like
>
> suffix=$(echo $package | sed 's/^.*\.\(t.*\)/\1/')
>
> and then test $suffix for .tar, .tgz, .tar.gz, .tar.bz2, .tbz2.
>
> ĸen
>
The concern about a preceding "t" would be true only if it occurred
after the first ".", right?
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page