diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-06-26 16:00:42 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-06-26 16:00:42 +0000 |
commit | f6bb35f2f268a764072b4629aeaa5dc117c3b7ba (patch) | |
tree | 93d1a51b952c5d5cd521446025a0dad3ffbd770d /eclass | |
parent | Added games-util/uz2unpack to DEPEND. (diff) | |
download | historical-f6bb35f2f268a764072b4629aeaa5dc117c3b7ba.tar.gz historical-f6bb35f2f268a764072b4629aeaa5dc117c3b7ba.tar.bz2 historical-f6bb35f2f268a764072b4629aeaa5dc117c3b7ba.zip |
Updated games.eclass to use uz2unpack.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games.eclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 8d1381d014b9..851493cfad4d 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.67 2004/06/25 00:39:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.68 2004/06/26 16:00:42 wolf31o2 Exp $ # # devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org # @@ -136,19 +136,19 @@ games_pkg_postinst() { # $1: directory or file to unpack games_ut_unpack() { local ut_unpack="$1" - export UT_DATA_PATH="${Ddir}/System" - cd "${UT_DATA_PATH}" - LD_LIBRARY_PATH=.:${UT2003_DATA_PATH}:${LD_LIBRARY_PATH} + #export UT_DATA_PATH="${Ddir}/System" + #cd "${UT_DATA_PATH}" + #LD_LIBRARY_PATH=.:${UT2003_DATA_PATH}:${LD_LIBRARY_PATH} if [ -z "${ut_unpack}" ]; then die "You must provide an argument to games_ut_unpack" fi if [ -f "${ut_unpack}" ]; then - ./ucc-bin decompress ${ut_unpack} --nohomedir >/dev/null 2>&1 \ + uz2unpack ${ut_unpack} ${ut_unpack/.uz2/} >/dev/null 2>&1 \ || die "uncompressing file ${ut_unpack}" fi if [ -d "${ut_unpack}" ]; then for f in `find ${ut_unpack} -name '*.uz*' -printf '%f '` ; do - ./ucc-bin decompress ${ut_unpack}/${f} --nohomedir >/dev/null 2>&1 \ + uz2unpack ${ut_unpack}/${f} ${ut_unpack}/${f/.uz2} >/dev/null 2>&1 \ || die "uncompressing file ${f}" rm -f ${ut_unpack}/${f} || die "deleting compressed file ${f}" done |