From 7f52427986312218fdc4c8d491bdb4e9f6121a99 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 24 Feb 2003 00:46:45 +0000 Subject: [PATCH] Using unzip for content files instead of gunzip. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@805 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/build/unix_installer/install.sh.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sc2/build/unix_installer/install.sh.in b/sc2/build/unix_installer/install.sh.in index f61a9b578..00ae1f2a3 100644 --- a/sc2/build/unix_installer/install.sh.in +++ b/sc2/build/unix_installer/install.sh.in @@ -29,6 +29,17 @@ EOF exit 1 fi +type unzip > /dev/null 2>&1 +if [ "$?" -ne 0 ]; then + cat << EOF +I need 'unzip' for unzipping things. You don't seem to have it. +That means no unzipping for me. And no The Ur-Quan Masters for you. +And that's really not acceptable, is it? So I hope you'll install it +soon. That way we'll both be happy. +EOF + exit 1 +fi + echo "I need to show you something. I don't want to, but I have to." echo "Press enter when you're ready." read TEMP @@ -228,6 +239,7 @@ mkdir -p -- "$PREFIX"/bin 2> /dev/null echo "Unpacking packages..." for COMPFILE in `selected_components`; do echo "- $COMPFILE" + unzip -od "$PREFIX" "$COMPFILE" gzip -dc "$COMPFILE" | tar -xf - -C "$PREFIX"/ done