From 991af5f6ef10b8db8320ecd88328a848f4d89736 Mon Sep 17 00:00:00 2001 From: ludwig Date: Thu, 1 Dec 2005 09:54:14 +0000 Subject: fix the stupid i386/x86/amd64/x86_64 weirdness git-svn-id: svn://svn.icculus.org/quake3/trunk@395 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/setup/doit | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'code/unix/setup/doit') diff --git a/code/unix/setup/doit b/code/unix/setup/doit index 0cc4993..a3c8e0a 100755 --- a/code/unix/setup/doit +++ b/code/unix/setup/doit @@ -10,8 +10,13 @@ set -e set -x arch=`uname -m` + +# $§&%!! +setup_arch=$arch +links= case "$arch" in - i?86) arch=i386 ;; + i?86) arch=i386; setup_arch=x86; links="amd64 x86_64" ;; + x86_64) links=amd64 esac rm -rf image @@ -45,10 +50,12 @@ rm -rf image/tmp sed 's/@VERSION@/'$VERSION'/g' < setup.xml > image/setup.data/setup.xml ### start script -mkdir -p image/bin/Linux/$arch -ln -s x86_64 image/bin/Linux/amd64 # $§&%!! -install -m 755 ioquake3.sh image/bin/Linux/$arch/ioquake3 -install -m 755 ioq3demo.sh image/bin/Linux/$arch/ioq3demo +mkdir -p image/bin/Linux/$setup_arch +for i in $links; do + ln -s $setup_arch image/bin/Linux/$i +done +install -m 755 ioquake3.sh image/bin/Linux/$setup_arch/ioquake3 +install -m 755 ioq3demo.sh image/bin/Linux/$setup_arch/ioq3demo ### README and COPYING install -m 644 ../../../README image/README -- cgit v1.2.3