Re: Would any cross builders find this kind of tool useful?
On 20 July 2015 at 21:07, Steven Stewart-Gallus
> I have been basically doing the following and using the sysroot parameter to GCC
> to set up build sandboxes for cross platform development.
> #! /bin/sh
> set -e
> apt-get download "$@"
> for II in *.deb
> ar x "$II"
> xz -d 'data.tar.xz' || gunzip 'data.tar.gz'
> tar xvf 'dat.tar'
> rm 'data.tar'
> rm "$II"
I don't see above useful at all, sorry.
tar with 'a' option can automatically detect and extract data
component, regardless of the compression.
you can avoid writing the data files out to disk, by piping everything.
`dpkg-deb -x .` does exactly this anyway and is widely available. And
give that you have apt-get, you surely also have dpkg-deb available to
to get a better sysroot, you can use debootstrap/cdebootstrap, which
is very portable acros all arches and does download, unpack the whole
thing. Very useful, if one considers "pbuilder" too heavy.
the $|| is very weird, and i'm not sure if that would trip up bugs in shells.