fix the stupid i386/x86/amd64/x86_64 weirdness

This commit is contained in:
Ludwig Nussel 2005-12-01 09:54:14 +00:00
parent 71d1b70767
commit b130d6be52
1 changed files with 12 additions and 5 deletions

View File

@ -10,8 +10,13 @@ set -e
set -x set -x
arch=`uname -m` arch=`uname -m`
# $§&%!!
setup_arch=$arch
links=
case "$arch" in case "$arch" in
i?86) arch=i386 ;; i?86) arch=i386; setup_arch=x86; links="amd64 x86_64" ;;
x86_64) links=amd64
esac esac
rm -rf image rm -rf image
@ -45,10 +50,12 @@ rm -rf image/tmp
sed 's/@VERSION@/'$VERSION'/g' < setup.xml > image/setup.data/setup.xml sed 's/@VERSION@/'$VERSION'/g' < setup.xml > image/setup.data/setup.xml
### start script ### start script
mkdir -p image/bin/Linux/$arch mkdir -p image/bin/Linux/$setup_arch
ln -s x86_64 image/bin/Linux/amd64 # $§&%!! for i in $links; do
install -m 755 ioquake3.sh image/bin/Linux/$arch/ioquake3 ln -s $setup_arch image/bin/Linux/$i
install -m 755 ioq3demo.sh image/bin/Linux/$arch/ioq3demo 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 ### README and COPYING
install -m 644 ../../../README image/README install -m 644 ../../../README image/README