~ubuntu-branches/ubuntu/jaunty/openarena/jaunty

« back to all changes in this revision

Viewing changes to code/unix/setup/pkg/ioquake3.sh

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert, Bruno "Fuddl" Kleinert
  • Date: 2008-04-24 14:33:54 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080424143354-0cuxsalv98ajw2js
Tags: 0.7.6-1
[ Bruno "Fuddl" Kleinert ]
* New upstream release
* Freshen 10_fix_build_and_binary_on_alpha.dpatch to apply to latest
  upstream sources
* Remove 10-fix_menudef.h_includes.dpatch which pulled in a missing header
  file. The header is now included in the upstream tarball.
* Remove debian/watch, because upstream places its new releases too often to
  different download locations
* Updated debian/copyright to reflect the download location
* Expand copyright years in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
# Rev: $Id: ioquake3.sh,v 1.11 2006/01/18 13:47:42 raistlin Exp raistlin $
3
 
# Needed to make symlinks/shortcuts work.
4
 
# the binaries must run with correct working directory
5
 
 
6
 
IOQ3_DIR=/usr/local/share/games/quake3
7
 
 
8
 
COMPILE_PLATFORM=`uname|sed -e s/_.*//|tr A-Z a-z`
9
 
COMPILE_ARCH=`uname -p | sed -e s/i.86/i386/`
10
 
 
11
 
EXEC_REL=release
12
 
 
13
 
EXEC_BIN=ioquake3.${COMPILE_ARCH}
14
 
#EXEC_BIN=ioquake3-smp.${COMPILE_ARCH}
15
 
#EXEC_BIN=ioq3ded.${COMPILE_ARCH}
16
 
 
17
 
EXEC_FLAGS="+set fs_cdpath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0"
18
 
 
19
 
EXEC_DIR_LIST=${IOQ3_DIR} 
20
 
 
21
 
for d in ${EXEC_DIR_LIST}
22
 
do
23
 
        if [ -d $d ]; then
24
 
                EXEC_DIR=${d}
25
 
                break
26
 
        fi
27
 
done
28
 
 
29
 
if [ "X${EXEC_DIR}" != "X" ]; then
30
 
        if [ ! -x  ${EXEC_DIR}/${EXEC_BIN} ]; then
31
 
                echo "Executable ${EXEC_DIR}/${EXEC_BIN} not found!" ; exit 1
32
 
        fi
33
 
        cd ${IOQ3_DIR} && \
34
 
        ${EXEC_DIR}/${EXEC_BIN} ${EXEC_FLAGS} $*
35
 
        exit $? 
36
 
else
37
 
        echo "No ioq3 binaries found!"
38
 
        exit 1
39
 
fi
40
 
  
41