Debian Codegraph @

linux_scripts/supermake

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
23 pushd ..
24 #Build, pak it and start
25 make && cd build/release-linux-$ARCH/baseq3 && zip -r ~/.openarena/$MODNAME/$MODNAME.pk3 vm && $BINNAME +set fs_game $MODNAME +set debug 1 +set sv_pure 0 +vm_ui 2 +vm_game 2 +vm_cgame 2
26 popd
27