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
This commit is contained in:
@@ -29,6 +29,17 @@ EOF
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "I need to show you something. I don't want to, but I have to."
|
||||||
echo "Press enter when you're ready."
|
echo "Press enter when you're ready."
|
||||||
read TEMP
|
read TEMP
|
||||||
@@ -228,6 +239,7 @@ mkdir -p -- "$PREFIX"/bin 2> /dev/null
|
|||||||
echo "Unpacking packages..."
|
echo "Unpacking packages..."
|
||||||
for COMPFILE in `selected_components`; do
|
for COMPFILE in `selected_components`; do
|
||||||
echo "- $COMPFILE"
|
echo "- $COMPFILE"
|
||||||
|
unzip -od "$PREFIX" "$COMPFILE"
|
||||||
gzip -dc "$COMPFILE" | tar -xf - -C "$PREFIX"/
|
gzip -dc "$COMPFILE" | tar -xf - -C "$PREFIX"/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user