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
@@ -64,11 +64,13 @@ EOF
for PACKAGE in $UQM_PACKAGES; do
eval PACKAGE_NAME="\$UQM_PACKAGE_${PACKAGE}_NAME"
eval PACKAGE_TITLE="\$UQM_PACKAGE_${PACKAGE}_TITLE"
eval PACKAGE_LOCATION="\$UQM_PACKAGE_${PACKAGE}_LOCATION"
eval PACKAGE_OPTIONAL="\$UQM_PACKAGE_${PACKAGE}_OPTIONAL"
eval PACKAGE_DEFAULT="\$UQM_PACKAGE_${PACKAGE}_DEFAULT"
cat << EOF
UQM_PACKAGE_${PACKAGE}_NAME="$PACKAGE_NAME"
UQM_PACKAGE_${PACKAGE}_TITLE="$PACKAGE_TITLE"
UQM_PACKAGE_${PACKAGE}_LOCATION="$PACKAGE_LOCATION"
UQM_PACKAGE_${PACKAGE}_OPTIONAL="$PACKAGE_OPTIONAL"
UQM_PACKAGE_${PACKAGE}_DEFAULT="$PACKAGE_DEFAULT"
EOF
+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
+2 -2
View File
@@ -124,13 +124,13 @@ show_content_path_menu() {
INPUT_content_path_VALUE="${INPUT_content_path_VALUE%/}/"
}
selected_components() {
selected_packages() {
local RESULT PACKAGE VALUE
RESULT=""
for PACKAGE in $UQM_PACKAGES; do
eval VALUE="\$CHECK_${PACKAGE}_VALUE"
if [ "$VALUE" = CHECKED ]; then
RESULT="${RESULT:+$RESULT }$(package_filename $PACKAGE)"
RESULT="${RESULT:+$RESULT }$PACKAGE"
fi
done
echo "$RESULT"
+3
View File
@@ -7,14 +7,17 @@ UQM_LICENSE_FILE="COPYING"
UQM_PACKAGES="content voice 3domusic"
UQM_PACKAGE_content_NAME="content"
UQM_PACKAGE_content_TITLE="General game data"
UQM_PACKAGE_content_LOCATION="lib/uqm/content/"
UQM_PACKAGE_content_OPTIONAL="FALSE"
UQM_PACKAGE_content_DEFAULT="TRUE"
UQM_PACKAGE_voice_NAME="voice"
UQM_PACKAGE_voice_TITLE="Spoken alien communication"
UQM_PACKAGE_voice_LOCATION="lib/uqm/content/"
UQM_PACKAGE_voice_OPTIONAL="TRUE"
UQM_PACKAGE_voice_DEFAULT="TRUE"
UQM_PACKAGE_3domusic_NAME="3domusic"
UQM_PACKAGE_3domusic_TITLE="Music from the 3DO version"
UQM_PACKAGE_3domusic_LOCATION="lib/uqm/content/"
UQM_PACKAGE_3domusic_OPTIONAL="TRUE"
UQM_PACKAGE_3domusic_DEFAULT="TRUE"