Debian Codegraph @

linux_scripts/supermake_native

raw
1
2 #Tip: You can create a supermake.local file and this script will get the variable from there!
3 BINNAME=openarena
4 MODNAME=oax
5 #ARCH should be either i386 (32 bit) or x86_64 (64 bit)
6 ARCH=i386
7
8 if [ -r ./supermake.local ] ; then
9 source ./supermake.local
10 fi
11
12 if [ -r $BINNAME ] ; then
13 echo $BINNAME found
14 else
15 echo $BINNAME not found! Check the variables in the script
16 exit 1
17 fi
18
19 #Create the mod dir
20 mkdir -p ~/.openarena/$MODNAME
21
22 pushd ..
23 #Build, pak it and start
24 make && cd build/release-linux-$ARCH/baseq3 && cp *.so ~/.openarena/$MODNAME/ && $BINNAME +set fs_game $MODNAME +set debug 1 +set sv_pure 0 +vm_ui 0 +vm_game 0 +vm_cgame 0
25 popd
26