diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-15 21:48:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-15 21:48:37 +0000 |
commit | dd07f1c5bcf0c6306aa97fbfd5c74b56a68b37ff (patch) | |
tree | e319ffcd4256742b6446f4b7486dacb29a94c254 /eclass/eutils.eclass | |
parent | hppa needs pic (diff) | |
download | historical-dd07f1c5bcf0c6306aa97fbfd5c74b56a68b37ff.tar.gz historical-dd07f1c5bcf0c6306aa97fbfd5c74b56a68b37ff.tar.bz2 historical-dd07f1c5bcf0c6306aa97fbfd5c74b56a68b37ff.zip |
bzip2 support in makeself files
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 26c8674ecacc..03ca5a539269 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.65 2003/11/10 22:18:04 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.66 2003/11/15 21:48:37 vapier Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -974,8 +974,17 @@ unpack_makeself() { if [ "${pipestatus//0}" != "" ] then # maybe it isnt gzipped ... they usually are, but not always ... - tail -n +${skip} ${src} | tar -x --no-same-owner -f - \ - || die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})" + tail -n +${skip} ${src} 2>/dev/null \ + | tar -x --no-same-owner -f - 2>/dev/null + pipestatus="${pipestatus// }" + if [ "${pipestatus//0}" != "" ] + then + # and every once in a while they are bzipped2 ... + tail -n +${skip} ${src} 2>/dev/null \ + | bunzip2 -c 2>/dev/null \ + | tar -x --no-same-owner -f - 2>/dev/null \ + || die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})" + fi fi } |