Destination location path can be given per .zip file now.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@808 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-24 01:55:12 +00:00
parent ca3a63dbc2
commit 9f1a08cb9d
4 changed files with 12 additions and 5 deletions
+5 -3
View File
@@ -237,13 +237,15 @@ mkdir -p -- "$PREFIX"/lib/uqm 2> /dev/null
mkdir -p -- "$PREFIX"/bin 2> /dev/null
echo "Unpacking packages..."
for COMPFILE in `selected_components`; do
for PACKAGE in `selected_packages`; do
echo "- $COMPFILE"
unzip -od "$PREFIX" "$COMPFILE"
COMPFILE="$(package_filename $PACKAGE)"
eval LOCATION="\$UQM_PACKAGE_${PACKAGE}_LOCATION"
unzip -od "${PREFIX}${LOCATION}" "$COMPFILE"
done
echo "Unpacking other stuff..."
tail -c @ATTACHLEN@ < "$0" | gzip -dc | tar -xf - -C "$PREFIX"/
tail -c @ATTACHLEN@ < "$0" | gzip -dc | tar -xf - -C "$PREFIX"
echo "Creating wrapper script..."
cat << EOF > "$PREFIX"bin/uqm