~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to misc/setup/pkg/ioq3ded.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2008-09-05 21:14:51 UTC
  • mfrom: (1.2.1 upstream) (2.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080905211451-243bmbl6l6gdav7l
* Remove non-free code/tools/lcc (Closes: #496346)
  + Remove hunk from patch 10_fix_build_and_binary_on_alpha
  + debian/rules: Add BUILD_GAME_QVM=0 to $(MAKE) call
    (thanks to Peter De Wachter)
* Remove code/libs containing binary libraries for Mac OS X and Win32
* debian/copyright: Explain which parts of upstream's sources were removed
* debian/rules: replace ${source:Upstream-Version} by 0.7.7
  because the variable also contains the `+dfsg1' part
* Add -fsigned-char to compiler options (Closes: #487970)
  (thanks to Peter De Wachter)
* Add myself to Uploaders
* debian/control: Remove article from beginning of short description,
  don't start short description with a capital letter
* debian/openarena.6: Escape minus signs
  + fixes lintian warnings: hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Rev: $Id: ioq3ded.sh,v 1.9 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 '[:upper:]' '[:lower:]'`
 
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_basepath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0 +set com_ansiColor 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