aprq2.sh: line 8: !DOCTYPE: No such file or directoryaprq2.sh: line 9: syntax error near unexpected token `newline'aprq2.sh: line 9: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
#!/bin/bash# Q2 Kicker helper v1.0## Written by SquareHimself# WTFPL :: http://en.wikipedia.org/wiki/WTFPL## Thank you to jdolan for his patches to aprq2.# Please visit his site at http://jdolan.dyndns.org## Also, thank you to Jehar for providing both the# kicker, hosting, tastyspleen.tv, etc...## TODO: - Allow for choosing cleancode over aprq2's DLL# - Use CleanQ2 instead of AprQ2#### This script must be run in a terminal.[ -t 0 ] || exit 1### Let's make some functions for a cleaner procedure later.function FetchSources {mkdir /tmp/aprq2cd /tmp/aprq2svn co svn://jdolan.dyndns.org/aprq2/trunkif [ -e "/tmp/aprq2/trunk/Makefile" ]; then echo "==> Sources acquired."else echo "==> Sources were not downloaded. Aborting." exit 1fi}### These menus... <3function MusicOption {MUSICP="MPD XMMS No"select choice in $MUSICP; do if [ "$choice" = "MPD" ]; then sed -i 's/BUILD_MPD=NO/BUILD_MPD=YES/g' /tmp/aprq2/trunk/Makefile echo "==> Selecting MPD." return elif [ "$choice" = "XMMS" ]; then sed -i 's/BUILD_XMMS=NO/BUILD_XMMS=YES/g' /tmp/aprq2/trunk/Makefile echo "==> Selecting XMMS." return else echo "==> Not enabling MPD or XMMS support." return fidone}function OpenALOption {CHOICES="Yes No"select choice in $CHOICES; do if [ "$choice" = "Yes" ]; then echo "==> Enabling OpenAL support." return else sed -i 's/BUILD_OPENAL=YES/BUILD_OPENAL=NO/g' /tmp/aprq2/Makefile echo "==> Not enabling OpenAL." return fidone}function MakeBin {cd /tmp/aprq2/trunkmake### This shit gets messy, but it works.if [ -e "/tmp/aprq2/trunk/releasei386/aq2" ]; then echo "==> Build was successful." echo "==> Installing binary as /usr/bin/quake2" mkdir -p /home/$USER/.quake2/baseq2 mv /tmp/aprq2/trunk/releasei386/aq2 /home/$USER/.quake2 if [ '$UID' == '0' ]; then echo "#\!/bin/sh\nexec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" > /usr/bin/quake2 chmod +x /usr/bin/quake2 else echo "==> Need root for this..." if [ -x `which sudo` ]; then echo "==> Found sudo. Invokes twice to create, then make executable." echo "exec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" | sudo tee -a /usr/bin/quake2 && sudo chmod +x /usr/bin/quake2 sudo -k else "==> Using su." su -c 'echo "exec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" > /usr/bin/quake2 && chmod +x /usr/bin/quake2' fi fi if [ -e "/usr/bin/quake2" ]; then echo "==> Binary installed." mv /tmp/aprq2/trunk/releasei386/gamei386.so /home/$USER/.quake2/baseq2 mv /tmp/aprq2/trunk/baseq2/pics /home/$USER/.quake2/baseq2 else echo "==> Had trouble installing the binary. :(" exit 1 fielse echo "###################################" echo "There was a problem with the build!" echo "###################################" exit 1fi}function PatchHTTP {cd /tmp/aprq2/trunkwget "http://github.com/squarehimself/q2kicker/raw/master/files.patch"wget "http://github.com/squarehimself/q2kicker/raw/master/cl_http.patch"patch -p1 < files.patchpatch -p1 < cl_http.patchcd /tmp/aprq2/trunk/qcommonwget "http://github.com/squarehimself/q2kicker/raw/master/files.h"}function ExtraFiles {YESORNO="Yes No"select choice in $YESORNO; do if [ "$choice" = "Yes" ]; then echo "==> Downloading kicker package" cd /tmp/aprq2 wget "http://tastyspleen.tv/q2k/q2kicker_current.zip" echo echo "==> Extracting and stuff..." unzip q2kicker_current.zip mv /tmp/aprq2/q2kicker/baseq2/* /home/$USER/.quake2/baseq2 mv /tmp/aprq2/q2kicker/NEW\ PLAYERS\ READ\ THIS.txt /home/$USER/.quake2 rm /home/$USER/.quake2/baseq2/gamex86.dll return else cd /home/$USER/.quake2 wget "http://tastyspleen.tv/q2k/q2kicker/NEW%20PLAYERS%20READ%20THIS.txt" cd /home/$USER/.quake2/baseq2 wget "http://tastyspleen.tv/q2k/q2kicker/baseq2/autoexec.cfg" wget "http://tastyspleen.tv/q2k/q2kicker/baseq2/address.cfg" return fidone}function PNGPatch {echo "==> Do we need to patch for libpng14?"YNUn="Yes No Unsure"select choice in $YNUn; do if [ "$choice" = "Unsure" ]; then echo "Not applying the patch, but you should learn how to check package versions." echo "If the build fails, this could be why." return elif [ "$choice" = "Yes" ]; then echo "==> Patching for libpng14" cd /tmp/aprq2/trunk wget "http://github.com/squarehimself/q2kicker/raw/master/pngpatch.patch" patch -p0 < pngpatch.patch return else echo "==> Not patching for libpng14." return fidone}function JPEGPatch {echo "==> Do we need to patch for libjpeg8?"YesNoU="Yes No Unsure"select choice in $YesNoU; do if [ "$choice" = "Unsure" ]; then echo "Not applying the patch, but you should learn how to check package versions." echo "If the build fails, this could be why." return elif [ "$choice" = "Yes" ]; then echo "==> Patching for libjpeg8" cd /tmp/aprq2/trunk wget "http://github.com/squarehimself/q2kicker/raw/master/jpegpatch.patch" patch -p0 < jpegpatch.patch return else echo "==> Not patching for libjpeg8." return fidone}if [ -e `which svn` ]; then echo "==> Fetching sources from svn..." FetchSources echo echo "==> Would you like to enable MPD or XMMS support?" MusicOption echo echo """==> What about OpenAL sound? (Usually better, needs OpenAL installed and enabled in your .cfg)""" OpenALOption echo echo "==> Applying HTTP downloading patch..." PatchHTTP echo PNGPatch echo JPEGPatch echo echo "==> Starting the build..." MakeBin echo echo """==> Would you like to use the game files included with the kicker? (Say yes here unless you've purchased quake2.)""" ExtraFiles echo echo "==> Cleaning up..." rm -rf /tmp/aprq2 echo """If everything was successful, your extra pak files go in ~/.quake2/baseq2 and you can run 'quake2' from your run prompt or console. The binary is installed to /usr/bin/quake2, as a reminder. There is a readme in ~/.quake2 explaining the baseq2 directory and all of the optional stuff you can do in there. I strongly suggest reading this file immediately and becoming very familiar with the contents, because this file outlines everything you need to know to get quake2 set up and going.If you have any problems, feel free to contact Square or Jehar on IRC. server: irc.globalgamers.net channel: #tastycast"""else echo "This script requires svn. Please install subversion and try again."fi
i still reckon linux is still not user friendly
mkdir: cannot create directory `/tmp/aprq2': File existsaprq2.sh: line 25: svn: command not found==> Sources were not downloaded. Aborting.
stick to quake 2 on certain maps Vae.
==> Starting the build...make targets BUILDDIR=releasex86_64 CFLAGS="-funsigned-char -pipe -DC_ONLY -DWITH_XMMS `glib-config --cflags` -DUSE_CURL -DUSE_SDL -DUSE_OPENAL -Wall -O2 -DNDEBUG"/bin/sh: glib-config: not foundmake[1]: Entering directory `/tmp/aprq2/trunk'gcc -funsigned-char -pipe -DC_ONLY -DWITH_XMMS -DUSE_CURL -DUSE_SDL -DUSE_OPENAL -Wall -O2 -DNDEBUG -DGL_QUAKE -o releasex86_64/q2glx/cl_cin.o -c client/cl_cin.cIn file included from client/../qcommon/qcommon.h:23, from client/ref.h:23, from client/client.h:24, from client/cl_cin.c:20:client/../qcommon/../game/q_shared.h:33:19: error: zlib.h: No such file or directoryIn file included from client/cl_cin.c:20:client/client.h:36:23: error: curl/curl.h: No such file or directoryIn file included from client/cl_cin.c:20:client/client.h:111: error: expected specifier-qualifier-list before ‘CURL’make[1]: *** [releasex86_64/q2glx/cl_cin.o] Error 1make[1]: Leaving directory `/tmp/aprq2/trunk'make: *** [release] Error 2###################################There was a problem with the build!###################################
aprq2.sh: line 25: svn: command not found==> Sources were not downloaded. Aborting.
make targets BUILDDIR=releasex86_64 CFLAGS="-funsigned-char -pipe -DC_ONLY -DWITH_XMMS `glib-config --cflags`/bin/sh: glib-config: not found
client/../qcommon/../game/q_shared.h:33:19: error: zlib.h: No such file or directoryclient/client.h:36:23: error: curl/curl.h: No such file or directory
ref_gl/qgl.h:29: warning: type defaults to ‘int’ in declaration of ‘GLchar’ref_gl/qgl.h:29: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:110: error: expected ‘)’ before ‘func’ref_gl/qgl.h:111: error: expected ‘)’ before ‘i’ref_gl/qgl.h:112: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:113: error: expected ‘)’ before ‘target’ref_gl/qgl.h:114: error: expected ‘)’ before ‘sfactor’ref_gl/qgl.h:115: error: expected ‘)’ before ‘mask’ref_gl/qgl.h:116: error: expected ‘)’ before ‘red’ref_gl/qgl.h:117: error: expected ‘)’ before ‘depth’ref_gl/qgl.h:118: error: expected ‘)’ before ‘s’ref_gl/qgl.h:119: error: expected ‘)’ before ‘plane’ref_gl/qgl.h:120: error: expected ‘)’ before ‘red’ref_gl/qgl.h:121: warning: type defaults to ‘int’ in declaration of ‘GLfloat’ref_gl/qgl.h:121: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:122: warning: type defaults to ‘int’ in declaration of ‘GLubyte’ref_gl/qgl.h:122: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:123: error: expected ‘)’ before ‘red’ref_gl/qgl.h:124: warning: type defaults to ‘int’ in declaration of ‘GLfloat’ref_gl/qgl.h:124: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:125: warning: type defaults to ‘int’ in declaration of ‘GLubyte’ref_gl/qgl.h:125: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:126: error: expected ‘)’ before ‘red’ref_gl/qgl.h:127: error: expected ‘)’ before ‘size’ref_gl/qgl.h:128: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:129: error: expected ‘)’ before ‘n’ref_gl/qgl.h:130: error: expected ‘)’ before ‘func’ref_gl/qgl.h:131: error: expected ‘)’ before ‘flag’ref_gl/qgl.h:132: error: expected ‘)’ before ‘zNear’ref_gl/qgl.h:133: error: expected ‘)’ before ‘cap’ref_gl/qgl.h:134: error: expected ‘)’ before ‘array’ref_gl/qgl.h:135: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:136: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:137: error: expected ‘)’ before ‘cap’ref_gl/qgl.h:138: error: expected ‘)’ before ‘array’ref_gl/qgl.h:142: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:143: error: expected declaration specifiers or ‘...’ before ‘*’ tokenref_gl/qgl.h:143: warning: type defaults to ‘int’ in declaration of ‘GLenum’ref_gl/qgl.h:143: error: ‘GLenum’ declared as function returning a functionref_gl/qgl.h:144: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:145: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:146: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenref_gl/qgl.h:148: warning: type defaults to ‘int’ in declaration of ‘GLfloat’ref_gl/qgl.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:149: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:150: error: expected ‘)’ before ‘type’ref_gl/qgl.h:151: error: expected ‘)’ before ‘left’ref_gl/qgl.h:152: error: expected ‘)’ before ‘face’ref_gl/qgl.h:153: error: expected ‘)’ before ‘factor’ref_gl/qgl.h:154: error: expected ‘)’ before ‘x’ref_gl/qgl.h:155: error: expected ‘)’ before ‘x’ref_gl/qgl.h:156: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:157: error: expected ‘)’ before ‘func’ref_gl/qgl.h:158: error: expected ‘)’ before ‘mask’ref_gl/qgl.h:159: error: expected ‘)’ before ‘fail’ref_gl/qgl.h:160: error: expected ‘)’ before ‘s’ref_gl/qgl.h:161: error: expected ‘)’ before ‘size’ref_gl/qgl.h:163: error: expected ‘)’ before ‘target’ref_gl/qgl.h:167: error: expected ‘)’ before ‘target’In file included from ref_gl/gl_local.h:54, from ref_gl/gl_draw.c:23:ref_gl/qgl.h:168: error: expected ‘)’ before ‘target’ref_gl/qgl.h:169: error: expected ‘)’ before ‘target’ref_gl/qgl.h:170: error: expected ‘)’ before ‘target’ref_gl/qgl.h:171: error: expected ‘)’ before ‘x’ref_gl/qgl.h:172: error: expected ‘)’ before ‘x’ref_gl/qgl.h:173: warning: type defaults to ‘int’ in declaration of ‘GLfloat’ref_gl/qgl.h:173: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:174: error: expected ‘)’ before ‘size’ref_gl/qgl.h:175: error: expected ‘)’ before ‘x’ref_gl/qgl.h:176: error: expected ‘)’ before ‘x’ref_gl/qgl.h:177: error: expected ‘)’ before ‘angle’ref_gl/qgl.h:178: error: expected ‘)’ before ‘s’ref_gl/qgl.h:179: error: expected ‘)’ before ‘mode’ref_gl/qgl.h:180: error: expected ‘)’ before ‘size’ref_gl/qgl.h:181: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:182: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:183: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:184: error: expected ‘)’ before ‘pname’ref_gl/qgl.h:185: error: expected ‘)’ before ‘n’ref_gl/qgl.h:186: error: expected ‘)’ before ‘target’ref_gl/qgl.h:187: error: expected ‘)’ before ‘target’ref_gl/qgl.h:188: error: expected ‘)’ before ‘target’ref_gl/qgl.h:189: warning: type defaults to ‘int’ in declaration of ‘GLfloat’ref_gl/qgl.h:189: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ tokenref_gl/qgl.h:190: error: expected ‘)’ before ‘x’ref_gl/qgl.h:193: error: expected ‘)’ before ‘factor’ref_gl/qgl.h:194: error: expected ‘)’ before ‘width’ref_gl/qgl.h:206: warning: parameter names (without types) in function declarationref_gl/qgl.h:207: warning: parameter names (without types) in function declarationref_gl/qgl.h:208: warning: parameter names (without types) in function declarationref_gl/qgl.h:209: error: expected ‘)’ before ‘const’ref_gl/qgl.h:210: error: expected ‘)’ before ‘param’ref_gl/qgl.h:211: error: expected ‘)’ before ‘param’ref_gl/qgl.h:212: warning: parameter names (without types) in function declarationref_gl/qgl.h:213: error: expected ‘)’ before ‘*’ tokenref_gl/qgl.h:214: warning: parameter names (without types) in function declarationIn file included from ref_gl/gl_draw.c:23:ref_gl/gl_local.h:297: error: expected ‘)’ before ‘value’ref_gl/gl_draw.c: In function ‘Draw_InitLocal’:ref_gl/gl_draw.c:61: warning: implicit declaration of function ‘qglTexParameteri’ref_gl/gl_draw.c:61: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)ref_gl/gl_draw.c:61: error: (Each undeclared identifier is reported only onceref_gl/gl_draw.c:61: error: for each function it appears in.)ref_gl/gl_draw.c:61: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)ref_gl/gl_draw.c:61: error: ‘GL_NEAREST’ undeclared (first use in this function)ref_gl/gl_draw.c:62: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_Char’:ref_gl/gl_draw.c:116: warning: implicit declaration of function ‘qglDisable’ref_gl/gl_draw.c:116: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:117: warning: implicit declaration of function ‘qglEnable’ref_gl/gl_draw.c:117: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:118: warning: implicit declaration of function ‘GL_TexEnv’ref_gl/gl_draw.c:118: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:122: warning: implicit declaration of function ‘qglBegin’ref_gl/gl_draw.c:122: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:126: warning: implicit declaration of function ‘qglColor4fv’ref_gl/gl_draw.c:127: warning: implicit declaration of function ‘qglTexCoord2f’ref_gl/gl_draw.c:127: warning: implicit declaration of function ‘qglVertex2i’ref_gl/gl_draw.c:140: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_String’:ref_gl/gl_draw.c:154: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:155: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:156: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:159: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:202: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘DrawCString’:ref_gl/gl_draw.c:218: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:219: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:220: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:223: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:272: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_ScaledPic’:ref_gl/gl_draw.c:341: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:342: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:350: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:351: warning: implicit declaration of function ‘qglColor4f’ref_gl/gl_draw.c:355: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:373: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_StretchPic’:ref_gl/gl_draw.c:404: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:405: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:406: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:417: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:430: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_Pic’:ref_gl/gl_draw.c:460: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:461: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:462: error: ‘GL_MODULATE’ undeclared (first use in this function)ref_gl/gl_draw.c:473: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:486: error: ‘GL_REPLACE’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_TileClear’:ref_gl/gl_draw.c:515: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:518: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_Fill’:ref_gl/gl_draw.c:543: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)ref_gl/gl_draw.c:545: warning: implicit declaration of function ‘qglColor3ubv’ref_gl/gl_draw.c:547: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c:555: warning: implicit declaration of function ‘qglColor3fv’ref_gl/gl_draw.c: In function ‘Draw_FadeScreen’:ref_gl/gl_draw.c:569: error: ‘GL_BLEND’ undeclared (first use in this function)ref_gl/gl_draw.c:570: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)ref_gl/gl_draw.c:572: error: ‘GL_QUADS’ undeclared (first use in this function)ref_gl/gl_draw.c: In function ‘Draw_StretchRaw’:ref_gl/gl_draw.c:640: warning: implicit declaration of function ‘qglBindTexture’ref_gl/gl_draw.c:640: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)ref_gl/gl_draw.c:641: warning: implicit declaration of function ‘qglTexImage2D’ref_gl/gl_draw.c:641: error: ‘GL_RGBA’ undeclared (first use in this function)ref_gl/gl_draw.c:641: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)ref_gl/gl_draw.c:643: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)ref_gl/gl_draw.c:643: error: ‘GL_LINEAR’ undeclared (first use in this function)ref_gl/gl_draw.c:644: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)ref_gl/gl_draw.c:647: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)ref_gl/gl_draw.c:649: error: ‘GL_QUADS’ undeclared (first use in this function)make[1]: *** [releasex86_64/q2glx/gl_draw.o] Error 1make[1]: Leaving directory `/tmp/aprq2/trunk'make: *** [release] Error 2###################################There was a problem with the build!###################################