diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 09:54:14 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 09:54:14 +0000 |
commit | 991af5f6ef10b8db8320ecd88328a848f4d89736 (patch) | |
tree | 3b547ac74faaf5c8b41e57f4597d32e3278910e8 /code/unix/setup | |
parent | 36a7f585604f0e7c852f3bf5282abd85ce85dfee (diff) | |
download | ioquake3-aero-991af5f6ef10b8db8320ecd88328a848f4d89736.tar.gz ioquake3-aero-991af5f6ef10b8db8320ecd88328a848f4d89736.zip |
fix the stupid i386/x86/amd64/x86_64 weirdness
git-svn-id: svn://svn.icculus.org/quake3/trunk@395 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/setup')
-rwxr-xr-x | code/unix/setup/doit | 17 |
1 files changed, 12 insertions, 5 deletions
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 |