diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-25 21:43:48 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-25 21:43:48 +0000 |
commit | f88350b2cd66fc278f479ac4af1e6ff4f420507a (patch) | |
tree | 5429e525d8bb1e323adfc909e2ed36110b328d88 /code/unix/build_setup.sh | |
parent | 6f6a6d0e4d64c69e56082d82c12c0cee7155f43c (diff) | |
download | ioquake3-aero-f88350b2cd66fc278f479ac4af1e6ff4f420507a.tar.gz ioquake3-aero-f88350b2cd66fc278f479ac4af1e6ff4f420507a.zip |
* Removed cons based build system
* Removed some id specific shell/perl scripts
* Removed some unused asm files
* Removed prehistoric RPM build rules
git-svn-id: svn://svn.icculus.org/quake3/trunk@104 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/build_setup.sh')
-rw-r--r-- | code/unix/build_setup.sh | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/code/unix/build_setup.sh b/code/unix/build_setup.sh deleted file mode 100644 index 0d54687..0000000 --- a/code/unix/build_setup.sh +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/bash -# Build various setups.. - -# inputs: -# directory with the common media -Q3SETUPMEDIA=/home/timo/Id/Q3SetupMedia/quake3 -# directory with binaries tree -Q3BINARIES=../install -# version: $1 -VERSION=$1 -# temporary directory used to prepare the files -# NOTE: this dir is erased before a new setup is built -TMPDIR=setup.tmp - -# location of the setup dir (for graphical installer and makeself) -SETUPDIR=setup - -# cp setup phase -# we need to copy the symlinked files, and not the symlinks themselves -# on antares this is forced with a cp -L -# on spoutnik, -L is not recognized, and dereference is the default behaviour -# we need a robust way of checking -TESTFILE=/tmp/foo$$ -touch $TESTFILE -# see if option is supported -cp -L $TESTFILE $TESTFILE.cp 2>/dev/null -if [ $? -eq 1 ] -then - # option not supported, should be on by default - echo "cp doesn't have -L option" - unset CPOPT -else - # option supported, use it - echo "cp supports -L option" - CPOPT="-L" -fi -rm $TESTFILE - - -# graphical installer (based on Loki Software's Setup tool) -build_installer () -{ -TMPDIR=setup.tmp - -rm -rf $TMPDIR -mkdir $TMPDIR - -# copy base setup files -cp $CPOPT -R $SETUPDIR/setup.sh $SETUPDIR/setup.data $TMPDIR - -# copy media files -cp $CPOPT -R $Q3SETUPMEDIA/* $TMPDIR - -# remove CVS entries -find $TMPDIR -name CVS | xargs rm -rf - -# copy binaries -mkdir -p $TMPDIR/bin/x86 -# smp -cp $CPOPT $Q3BINARIES/linuxquake3-smp $TMPDIR/bin/x86/quake3-smp.x86 -strip $TMPDIR/bin/x86/quake3-smp.x86 -brandelf -t Linux $TMPDIR/bin/x86/quake3-smp.x86 -# old school -cp $CPOPT $Q3BINARIES/linuxquake3 $TMPDIR/bin/x86/quake3.x86 -strip $TMPDIR/bin/x86/quake3.x86 -brandelf -t Linux $TMPDIR/bin/x86/quake3.x86 -# ded -cp $CPOPT $Q3BINARIES/linuxq3ded $TMPDIR/bin/x86/q3ded -strip $TMPDIR/bin/x86/q3ded -brandelf -t Linux $TMPDIR/bin/x86/q3ded - -# PB files -mkdir -p $TMPDIR/pb/htm -cp $CPOPT ../pb/linux/*.so $TMPDIR/pb -cp $CPOPT ../pb/htm/*.htm $TMPDIR/pb/htm - -# Linux FAQ -mkdir -p $TMPDIR/Docs/LinuxFAQ -cp $CPOPT LinuxSupport/* $TMPDIR/Docs/LinuxFAQ - -# generated .qvm pk3 files -mkdir -p $TMPDIR/baseq3 -mkdir -p $TMPDIR/missionpack -# not needed now -#cp $CPOPT $Q3BINARIES/baseq3/pak8.pk3 $TMPDIR/baseq3/ -#cp $CPOPT $Q3BINARIES/missionpack/pak3.pk3 $TMPDIR/missionpack/ - -# menu shortcut to the game -# FIXME current setup doesn't have a way to set symlinks on arbitrary things -# so we use a dummy quake3 script (which will be overwritten by postinstall.sh) -echo -e "#!/bin/sh\necho \"If you read this, then the setup script failed miserably.\nPlease report to ttimo@idsoftware.com\n\"" > $TMPDIR/bin/x86/quake3 -echo -e "#!/bin/sh\necho \"If you read this, then the setup script failed miserably.\nPlease report to ttimo@idsoftware.com\n\"" > $TMPDIR/bin/x86/quake3-smp -# create the auto-extractible archive -# first step: on FreeBSD we would default to Linux binaries .. use a symlink -( -cd $TMPDIR/setup.data/bin -ln -s Linux FreeBSD -ln -s Linux NetBSD -ln -s Linux OpenBSD -) -# NOTE: we used to pass the $VERSION, but it doesn't seem very usefull -./$SETUPDIR/makeself/makeself.sh $TMPDIR linuxq3apoint-$VERSION.x86.run "Quake III Arena Point Release $VERSION " ./setup.sh - -chmod a+rx linuxq3apoint-$VERSION.x86.run - -#rm -rf $TMPDIR -} - -check_brandelf() -{ - # make sure brandelf is installed to avoid any problem when building the setups - BRAND=`which brandelf`; - if [ -n "$BRAND" ] && [ -x "$BRAND" ] - then - echo "brandelf is present: $BRAND" - else - echo "brandelf not found" - exit - fi -} - -# safe checks -check_brandelf - -build_installer |