diff --git a/specs/compile farm scripts/linux/.bitchxrc b/specs/compile farm scripts/linux/.bitchxrc new file mode 100644 index 000000000..a8c80714b --- /dev/null +++ b/specs/compile farm scripts/linux/.bitchxrc @@ -0,0 +1,16 @@ +^on -join "% #testdisabled *" { +/exec -msg #fte /home/moodles/svninfo.sh +/exec -msg #fte /home/moodles/count.sh +timer 60 //^part #fte Until the next SVN commit.. +timer 120 //^quit +} +on connect "*quakenet.org*" { +/msg Q@CServe.quakenet.org AUTH AGorilla passwordhere +} +on ^channel_synch "#fte *" +{ +exec -msg $0 /home/moodles/svninfo.sh +timer 1 //exec -msg $0 /home/moodles/count.sh +timer 60 //^part $0 Until the next SVN commit.. +timer 120 //^quit +} diff --git a/specs/compile farm scripts/linux/build.sh b/specs/compile farm scripts/linux/build.sh new file mode 100644 index 000000000..7d909c202 --- /dev/null +++ b/specs/compile farm scripts/linux/build.sh @@ -0,0 +1,144 @@ +#!/bin/bash +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs +LOGFOLDER=/htdocs/build_logs +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +SVNFOLDER=$HOME/fteqw/engine/release +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TIMETAKENTF ]; +then + rm $TIMETAKENTF +fi + +cd $BUILDLOGFOLDER/ +echo "Deleting old build logs" +rm *.txt + +cd $BUILDFOLDER/ +echo "Deleteing old binaries" +rm * >> /dev/null 2>> /dev/null +rm -rf ./win32/ +rm -rf ./linux_32bit/ +rm -rf ./linux_64bit/ +rm -rf ./morphos/ +rm -rf ./macosx_tiger_10.4/ + +echo "Making folders" +mkdir win32 +mkdir linux_32bit +mkdir linux_64bit +mkdir morphos +mkdir macosx_tiger_10.4 + +cd /home/moodles/fteqw/engine/ + +echo "SVN Update" +svn update + +make clean >> /dev/null +echo "Making Linux 32bit (llvm)" +make $THREADS FTE_TARGET=linux32 CC="llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_llvm.txt 2>> $BUILDLOGFOLDER/linux32_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit (clang)" +make $THREADS FTE_TARGET=linux32 CC="clang -DCLANG" >> $BUILDLOGFOLDER/linux32_clang.txt 2>> $BUILDLOGFOLDER/linux32_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking clang object files" +make clean >> /dev/null +echo "Making Linux 32bit (icc)" +make $THREADS FTE_TARGET=linux32 CC="icc" >> $BUILDLOGFOLDER/linux32_icc.txt 2>> $BUILDLOGFOLDER/linux32_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking icc object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (llvm)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL_llvm.txt 2>> $BUILDLOGFOLDER/linux32_SDL_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (clang)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="clang -m32 -DCLANG" >> $BUILDLOGFOLDER/linux32_SDL_clang.txt 2>> $BUILDLOGFOLDER/linux32_SDL_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL clang object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (icc)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="icc -m32" >> $BUILDLOGFOLDER/linux32_SDL_icc.txt 2>> $BUILDLOGFOLDER/linux32_SDL_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL icc object files" +make clean >> /dev/null +echo "Making Linux 32bit (gcc)" +make $THREADS FTE_TARGET=linux32 >> $BUILDLOGFOLDER/linux32.txt 2>> $BUILDLOGFOLDER/linux32.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows\n" +make $THREADS FTE_TARGET=win32 sv-rel gl-rel mingl-rel npqtv-rel >> $BUILDLOGFOLDER/win32.txt 2>> $BUILDLOGFOLDER/win32.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making MorphOS\n" +make $THREADS FTE_TARGET=morphos gl-rel mingl-rel >> $BUILDLOGFOLDER/morphos.txt 2>> $BUILDLOGFOLDER/morphos.txt +cp $SVNFOLDER/* $BUILDFOLDER/morphos/ >> /dev/null 2>> /dev/null +chmod ugo+x $BUILDFOLDER/morphos/* +make clean >> /dev/null +echo "Making MacOSX" +make $THREADS FTE_TARGET=macosx sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/include/ -L/home/moodles/mac/lib" >> $BUILDLOGFOLDER/osx_ppc.txt 2>> $BUILDLOGFOLDER/osx_ppc.txt +make $THREADS FTE_TARGET=macosx_x86 sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/x86/include/ -L/home/moodles/mac/x86/lib" >> $BUILDLOGFOLDER/osx_86.txt 2>> $BUILDLOGFOLDER/osx_86.txt +cp $SVNFOLDER/* $BUILDFOLDER/macosx_tiger_10.4/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows SDL" +make $THREADS FTE_TARGET=win32_SDL CFLAGS="-D_SDL" >> $BUILDLOGFOLDER/win32_SDL.txt 2>> $BUILDLOGFOLDER/win32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 32bit SDL" +make $THREADS FTE_TARGET=SDL BITS=32 >> $BUILDLOGFOLDER/linux32_SDL.txt 2>> $BUILDLOGFOLDER/linux32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit" +make $THREADS FTE_TARGET=linux64 LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64.txt 2>> $BUILDLOGFOLDER/linux64.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_64bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit (clang)" +make $THREADS FTE_TARGET=linux64 CC="clang -m64 -DCLANG" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_clang.txt 2>> $BUILDLOGFOLDER/linux64_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)64$/mv "&" "\164.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_64bit/ +cd .. +make clean >> /dev/null +echo "Making Linux 64bit SDL (very ambitious)" +make $THREADS FTE_TARGET=SDL gl-rel CC="gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_SDL.txt 2>> $BUILDLOGFOLDER/linux64_SDL.txt + +cd /home/moodles/fteqw/engine +svn info >> $BUILDFOLDER/version.txt +echo "All done" + +END=$(date +%s) +DIFF=$(( $END - $START )) +MINS=$(( $DIFF / 60 )) +echo "(Total Compile Time: $MINS minutes)" > $TIMETAKENTF +echo "Total Compile Time: $MINS minutes" + +cd /home/moodles +rm .bitchxrc +cp ./fteqw/.bitchxrc ./ +./BitchX -a gameservers.nj.us.quakenet.org -A -c "#fte" -n A_Gorilla diff --git a/specs/compile farm scripts/linux/build_ccache.sh b/specs/compile farm scripts/linux/build_ccache.sh new file mode 100644 index 000000000..9c1950ce9 --- /dev/null +++ b/specs/compile farm scripts/linux/build_ccache.sh @@ -0,0 +1,144 @@ +#!/bin/bash +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs +LOGFOLDER=/htdocs/build_logs +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +SVNFOLDER=$HOME/fteqw/engine/release +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TIMETAKENTF ]; +then + rm $TIMETAKENTF +fi + +cd $BUILDLOGFOLDER/ +echo "Deleting old build logs" +rm *.txt + +cd $BUILDFOLDER/ +echo "Deleteing old binaries" +rm * >> /dev/null 2>> /dev/null +rm -rf ./win32/ +rm -rf ./linux_32bit/ +rm -rf ./linux_64bit/ +rm -rf ./morphos/ +rm -rf ./macosx_tiger_10.4/ + +echo "Making folders" +mkdir win32 +mkdir linux_32bit +mkdir linux_64bit +mkdir morphos +mkdir macosx_tiger_10.4 + +cd /home/moodles/fteqw/engine/ + +echo "SVN Update" +svn update + +make clean >> /dev/null +echo "Making Linux 32bit (llvm)" +make $THREADS FTE_TARGET=linux32 CC="ccache llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_llvm.txt 2>> $BUILDLOGFOLDER/linux32_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit (clang)" +make $THREADS FTE_TARGET=linux32 CC="ccache clang -DCLANG" >> $BUILDLOGFOLDER/linux32_clang.txt 2>> $BUILDLOGFOLDER/linux32_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking clang object files" +make clean >> /dev/null +echo "Making Linux 32bit (icc)" +make $THREADS FTE_TARGET=linux32 CC="ccache icc" >> $BUILDLOGFOLDER/linux32_icc.txt 2>> $BUILDLOGFOLDER/linux32_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking icc object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (llvm)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL_llvm.txt 2>> $BUILDLOGFOLDER/linux32_SDL_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (clang)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache clang -m32 -DCLANG" >> $BUILDLOGFOLDER/linux32_SDL_clang.txt 2>> $BUILDLOGFOLDER/linux32_SDL_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL clang object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (icc)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache icc -m32" >> $BUILDLOGFOLDER/linux32_SDL_icc.txt 2>> $BUILDLOGFOLDER/linux32_SDL_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL icc object files" +make clean >> /dev/null +echo "Making Linux 32bit (gcc)" +make $THREADS FTE_TARGET=linux32 CC="ccache gcc -m32" >> $BUILDLOGFOLDER/linux32.txt 2>> $BUILDLOGFOLDER/linux32.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows\n" +make $THREADS FTE_TARGET=win32 CC="ccache i586-mingw32msvc-gcc" sv-rel gl-rel mingl-rel npqtv-rel >> $BUILDLOGFOLDER/win32.txt 2>> $BUILDLOGFOLDER/win32.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making MorphOS\n" +make $THREADS FTE_TARGET=morphos CC="ccache ppc-morphos-gcc" gl-rel mingl-rel >> $BUILDLOGFOLDER/morphos.txt 2>> $BUILDLOGFOLDER/morphos.txt +cp $SVNFOLDER/* $BUILDFOLDER/morphos/ >> /dev/null 2>> /dev/null +chmod ugo+x $BUILDFOLDER/morphos/* +make clean >> /dev/null +echo "Making MacOSX" +make $THREADS FTE_TARGET=macosx CC="ccache powerpc-apple-darwin8-gcc" sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/include/ -L/home/moodles/mac/lib" >> $BUILDLOGFOLDER/osx_ppc.txt 2>> $BUILDLOGFOLDER/osx_ppc.txt +make $THREADS FTE_TARGET=macosx_x86 CC="ccache i686-apple-darwin8-gcc" sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/x86/include/ -L/home/moodles/mac/x86/lib" >> $BUILDLOGFOLDER/osx_86.txt 2>> $BUILDLOGFOLDER/osx_86.txt +cp $SVNFOLDER/* $BUILDFOLDER/macosx_tiger_10.4/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows SDL" +make $THREADS FTE_TARGET=win32_SDL CFLAGS="-D_SDL" CC="ccache i586-mingw32msvc-gcc" >> $BUILDLOGFOLDER/win32_SDL.txt 2>> $BUILDLOGFOLDER/win32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 32bit SDL" +make $THREADS FTE_TARGET=SDL BITS=32 CC="ccache gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL.txt 2>> $BUILDLOGFOLDER/linux32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit" +make $THREADS FTE_TARGET=linux64 CC="ccache gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64.txt 2>> $BUILDLOGFOLDER/linux64.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_64bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit (clang)" +make $THREADS FTE_TARGET=linux64 CC="ccache clang -m64 -DCLANG" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_clang.txt 2>> $BUILDLOGFOLDER/linux64_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)64$/mv "&" "\164.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_64bit/ +cd .. +make clean >> /dev/null +echo "Making Linux 64bit SDL (very ambitious)" +make $THREADS FTE_TARGET=SDL gl-rel CC="ccache gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_SDL.txt 2>> $BUILDLOGFOLDER/linux64_SDL.txt + +cd /home/moodles/fteqw/engine +svn info >> $BUILDFOLDER/version.txt +echo "All done" + +END=$(date +%s) +DIFF=$(( $END - $START )) +MINS=$(( $DIFF / 60 )) +echo "(Total Compile Time: $MINS minutes)" > $TIMETAKENTF +echo "Total Compile Time: $MINS minutes" + +cd /home/moodles +rm .bitchxrc +cp ./fteqw/.bitchxrc ./ +#./BitchX -a gameservers.nj.us.quakenet.org -A -c "#fte" -n A_Gorilla diff --git a/specs/compile farm scripts/linux/build_fteqcc.sh b/specs/compile farm scripts/linux/build_fteqcc.sh new file mode 100644 index 000000000..b20b1ff61 --- /dev/null +++ b/specs/compile farm scripts/linux/build_fteqcc.sh @@ -0,0 +1,84 @@ +#!/bin/bash +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs/fteqcc +LOGFOLDER=/htdocs/build_logs/fteqcc +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin + +cd /home/moodles/fteqw/engine/qclib +rm version.txt +rm -rf /home/moodles/fteqw/fteqw/trunk/engine/export +rm $BUILDFOLDER/* +rm /home/moodles/htdocs/build_logs/fteqcc/* + +svn update +svn info >> version.txt +cd .. + +svn export qclib export +cp ./qclib/version.txt ./export/version.txt +cd export +tar -cjf fteqcc_sourcecode.tar.bz2 * +mv *.bz2 $BUILDFOLDER/ +cd .. +rm -rf export + +cd qclib + +svn info >> $BUILDFOLDER/version.txt + +make clean +make $THREADS win CC=i586-mingw32msvc-gcc >> $BUILDLOGFOLDER/win32-fteqccgui.txt 2>> $BUILDLOGFOLDER/win32-fteqccgui.txt +mv fteqcc.exe $BUILDFOLDER/win32-fteqccgui.exe + +make clean +make $THREADS win CC="x86_64-w64-mingw32-gcc -m64" >> $BUILDLOGFOLDER/win64-fteqccgui.txt 2>> $BUILDLOGFOLDER/win64-fteqccgui.txt +mv fteqcc.exe $BUILDFOLDER/win64-fteqccgui.exe + +make clean +make $THREADS >> $BUILDLOGFOLDER/linux32-fteqcc.txt 2>> $BUILDLOGFOLDER/linux32-fteqcc.txt +mv fteqcc.bin $BUILDFOLDER/linux32-fteqcc + +make clean +make $THREADS CC="llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32-fteqcc_llvm.txt 2>> $BUILDLOGFOLDER/linux32-fteqcc_llvm.txt +mv fteqcc.bin $BUILDFOLDER/linux32-fteqcc.llvm + +make clean +make $THREADS CC="clang -m32 -Dinline=" >> $BUILDLOGFOLDER/linux32-fteqcc_clang.txt 2>> $BUILDLOGFOLDER/linux32-fteqcc_clang.txt +mv fteqcc.bin $BUILDFOLDER/linux32-fteqcc.clang + +make clean +make $THREADS CC="icc -m32" >> $BUILDLOGFOLDER/linux32-fteqcc_icc.txt 2>> $BUILDLOGFOLDER/linux32-fteqcc_icc.txt +mv fteqcc.bin $BUILDFOLDER/linux32-fteqcc.icc + +make clean +make $THREADS CC="gcc -m64" >> $BUILDLOGFOLDER/linux64-fteqcc.txt 2>> $BUILDLOGFOLDER/linux64-fteqcc.txt +mv fteqcc.bin $BUILDFOLDER/linux64-fteqcc + +make clean +make $THREADS CC="clang -m64 -Dinline=" >> $BUILDLOGFOLDER/linux64-fteqcc_clang.txt 2>> $BUILDLOGFOLDER/linux64-fteqcc_clang.txt +mv fteqcc.bin $BUILDFOLDER/linux64-fteqcc.clang + +make clean +make $THREADS CC=i586-mingw32msvc-gcc >> $BUILDLOGFOLDER/win32-fteqcc.txt 2>> $BUILDLOGFOLDER/win32_fteqcc.txt +mv fteqcc.bin $BUILDFOLDER/win32-fteqcc.exe + +make clean +make $THREADS win CC="x86_64-w64-mingw32-gcc -m64" >> $BUILDLOGFOLDER/win64-fteqcc.txt 2>> $BUILDLOGFOLDER/win64-fteqcc.txt +mv fteqcc.exe $BUILDFOLDER/win64-fteqcc.exe + +make clean +make $THREADS CC="powerpc-apple-darwin8-gcc -arch ppc -arch i686" >> $BUILDLOGFOLDER/macosx_tiger-fteqcc.txt 2>> $BUILDLOGFOLDER/macosx_tiger-fteqcc.txt +mv fteqcc.bin $BUILDFOLDER/macosx_tiger-fteqcc + +make clean +make $THREADS CC="ppc-morphos-gcc -noixemul" >> $BUILDLOGFOLDER/morphos-fteqcc.txt 2>> $BUILDLOGFOLDER/morphos-fteqcc.txt +mv fteqcc.bin $BUILDFOLDER/morphos-fteqcc +chmod ugo+x $BUILDFOLDER/morphos-fteqcc + +END=$(date +%s) +DIFF=$(( $END - $START )) +echo "It took $DIFF seconds" diff --git a/specs/compile farm scripts/linux/build_fteqtv.sh b/specs/compile farm scripts/linux/build_fteqtv.sh new file mode 100644 index 000000000..8f6fdd4f0 --- /dev/null +++ b/specs/compile farm scripts/linux/build_fteqtv.sh @@ -0,0 +1,71 @@ +#!/bin/bash +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs/fteqtv +LOGFOLDER=/htdocs/build_logs/fteqtv +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin + +rm /home/moodles/htdocs/build_logs/fteqtv/* +cd /home/moodles/fteqw/fteqw/trunk/fteqtv/ +rm -r release +mkdir release + +svn update +svn info >> version.txt +cp version.txt $BUILDFOLDER/ +cp LICENSE $BUILDFOLDER/ + +cd .. +rm -rf export +svn export fteqtv export +cp $BUILDFOLDER/version.txt ./export/version.txt +cd export +tar -cjf fteqtv_sourcecode.tar.bz2 * +mv *.bz2 $BUILDFOLDER/ + +cd /home/moodles/fteqw/fteqw/trunk/fteqtv +make clean +make $THREADS >> $BUILDLOGFOLDER/linux32-fteqtv.txt 2>> $BUILDLOGFOLDER/linux32-fteqtv.txt +mv qtv $BUILDFOLDER/linux32-qtv + +make clean +make $THREADS CC="gcc -m64" >> $BUILDLOGFOLDER/linux64-fteqtv.txt 2>> $BUILDLOGFOLDER/linux64-fteqtv.txt +mv qtv $BUILDFOLDER/linux64-qtv + +make clean +make $THREADS CC="llvm-gcc" >> $BUILDLOGFOLDER/linux32-fteqtv_llvm.txt 2>> $BUILDLOGFOLDER/linux32-fteqtv_llvm.txt +mv qtv $BUILDFOLDER/linux32-qtv.llvm + +make clean +make $THREADS CC="clang" >> $BUILDLOGFOLDER/linux32-fteqtv_clang.txt 2>> $BUILDLOGFOLDER/linux32-fteqtv_clang.txt +mv qtv $BUILDFOLDER/linux32-qtv.clang + +make clean +make $THREADS CC="clang -m64" >> $BUILDLOGFOLDER/linux64-fteqtv_clang.txt 2>> $BUILDLOGFOLDER/linux64-fteqtv_clang.txt +mv qtv $BUILDFOLDER/linux64-qtv.clang + +make clean +make $THREADS CC="icc" >> $BUILDLOGFOLDER/linux32-fteqtv_icc.txt 2>> $BUILDLOGFOLDER/linux32-fteqtv_icc.txt +mv qtv $BUILDFOLDER/linux32-qtv.icc + +make clean +make $THREADS TOOLPREFIX=ppc-morphos- >> $BUILDLOGFOLDER/morphos-fteqtv.txt 2>> $BUILDLOGFOLDER/morphos-fteqtv.txt +mv qtv $BUILDFOLDER/morphos-qtv +chmod ugo+x $BUILDFOLDER/morphos-qtv + +make clean +make $THREADS TOOLPREFIX=i586-mingw32msvc- qtv.exe >> $BUILDLOGFOLDER/win32-fteqtv.txt 2>> $BUILDLOGFOLDER/win32-fteqtv.txt +mv qtv.exe $BUILDFOLDER/win32-qtv.exe + +make clean +make $THREADS TOOLPREFIX=powerpc-apple-darwin8- STRIPFLAGS="" CFLAGS="-arch i686 -arch ppc" >> $BUILDLOGFOLDER/macosx_tiger.txt 2>> $BUILDLOGFOLDER/macosx_tiger-fteqtv.txt +#powerpc-apple-darwin8-strip qtv.db -o qtv +mv qtv $BUILDFOLDER/macosx_tiger-qtv + +END=$(date +%s) +DIFF=$(( $END - $START )) +echo "It took $DIFF seconds" + diff --git a/specs/compile farm scripts/linux/build_wip.sh b/specs/compile farm scripts/linux/build_wip.sh new file mode 100644 index 000000000..07c456343 --- /dev/null +++ b/specs/compile farm scripts/linux/build_wip.sh @@ -0,0 +1,145 @@ +#!/bin/bash +./ccache-alias.sh +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs/unstable +LOGFOLDER=/htdocs/unstable/build_logs +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +SVNFOLDER=$HOME/wip/wip/engine/release +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TIMETAKENTF ]; +then + rm $TIMETAKENTF +fi + +cd $BUILDLOGFOLDER/ +echo "Deleting old build logs" +rm *.txt + +cd $BUILDFOLDER/ +echo "Deleteing old binaries" +rm * >> /dev/null 2>> /dev/null +rm -rf ./win32/ +rm -rf ./linux_32bit/ +rm -rf ./linux_64bit/ +rm -rf ./morphos/ +rm -rf ./macosx_tiger_10.4/ + +echo "Making folders" +mkdir win32 +mkdir linux_32bit +mkdir linux_64bit +mkdir morphos +mkdir macosx_tiger_10.4 + +cd /home/moodles/wip/wip/engine + +echo "SVN Update" +svn update + +make clean >> /dev/null +echo "Making Linux 32bit (llvm)" +make $THREADS FTE_TARGET=linux32 CC="llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_llvm.txt 2>> $BUILDLOGFOLDER/linux32_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit (clang)" +make $THREADS FTE_TARGET=linux32 CC="clang -DCLANG" >> $BUILDLOGFOLDER/linux32_clang.txt 2>> $BUILDLOGFOLDER/linux32_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking clang object files" +make clean >> /dev/null +echo "Making Linux 32bit (icc)" +make $THREADS FTE_TARGET=linux32 CC="icc" >> $BUILDLOGFOLDER/linux32_icc.txt 2>> $BUILDLOGFOLDER/linux32_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking icc object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (llvm)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL_llvm.txt 2>> $BUILDLOGFOLDER/linux32_SDL_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (clang)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="clang -m32 -DCLANG" >> $BUILDLOGFOLDER/linux32_SDL_clang.txt 2>> $BUILDLOGFOLDER/linux32_SDL_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL clang object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (icc)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="icc -m32" >> $BUILDLOGFOLDER/linux32_SDL_icc.txt 2>> $BUILDLOGFOLDER/linux32_SDL_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL icc object files" +make clean >> /dev/null +echo "Making Linux 32bit (gcc)" +make $THREADS FTE_TARGET=linux32 >> $BUILDLOGFOLDER/linux32.txt 2>> $BUILDLOGFOLDER/linux32.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows\n" +make $THREADS FTE_TARGET=win32 sv-rel gl-rel mingl-rel npqtv-rel >> $BUILDLOGFOLDER/win32.txt 2>> $BUILDLOGFOLDER/win32.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making MorphOS\n" +make $THREADS FTE_TARGET=morphos gl-rel mingl-rel >> $BUILDLOGFOLDER/morphos.txt 2>> $BUILDLOGFOLDER/morphos.txt +cp $SVNFOLDER/* $BUILDFOLDER/morphos/ >> /dev/null 2>> /dev/null +chmod ugo+x $BUILDFOLDER/morphos/* +make clean >> /dev/null +echo "Making MacOSX" +make $THREADS FTE_TARGET=macosx sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/include/ -L/home/moodles/mac/lib" >> $BUILDLOGFOLDER/osx_ppc.txt 2>> $BUILDLOGFOLDER/osx_ppc.txt +make $THREADS FTE_TARGET=macosx_x86 sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/x86/include/ -L/home/moodles/mac/x86/lib" >> $BUILDLOGFOLDER/osx_86.txt 2>> $BUILDLOGFOLDER/osx_86.txt +cp $SVNFOLDER/* $BUILDFOLDER/macosx_tiger_10.4/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows SDL" +make $THREADS FTE_TARGET=win32_SDL CFLAGS="-D_SDL" >> $BUILDLOGFOLDER/win32_SDL.txt 2>> $BUILDLOGFOLDER/win32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 32bit SDL" +make $THREADS FTE_TARGET=SDL BITS=32 >> $BUILDLOGFOLDER/linux32_SDL.txt 2>> $BUILDLOGFOLDER/linux32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit" +make $THREADS FTE_TARGET=linux64 LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64.txt 2>> $BUILDLOGFOLDER/linux64.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_64bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit (clang)" +make $THREADS FTE_TARGET=linux64 CC="clang -m64 -DCLANG" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_clang.txt 2>> $BUILDLOGFOLDER/linux64_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)64$/mv "&" "\164.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_64bit/ +cd .. +make clean >> /dev/null +echo "Making Linux 64bit SDL (very ambitious)" +make $THREADS FTE_TARGET=SDL gl-rel CC="gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_SDL.txt 2>> $BUILDLOGFOLDER/linux64_SDL.txt + +cd /home/moodles/wip/wip/engine +svn info >> $BUILDFOLDER/version.txt +echo "All done" + +END=$(date +%s) +DIFF=$(( $END - $START )) +MINS=$(( $DIFF / 60 )) +echo "(Total Compile Time: $MINS minutes)" > $TIMETAKENTF +echo "Total Compile Time: $MINS minutes" + +cd /home/moodles +rm .bitchxrc +cp ./wip/.bitchxrc ./ +./BitchX -a gameservers.nj.us.quakenet.org -A -c "#fte" -n A_WIP_Gorilla diff --git a/specs/compile farm scripts/linux/build_wip_ccache.sh b/specs/compile farm scripts/linux/build_wip_ccache.sh new file mode 100644 index 000000000..c632efddb --- /dev/null +++ b/specs/compile farm scripts/linux/build_wip_ccache.sh @@ -0,0 +1,144 @@ +#!/bin/bash +START=$(date +%s) +HOME=/home/moodles +WEBFOLDER=/htdocs/unstable +LOGFOLDER=/htdocs/unstable/build_logs +BUILDFOLDER=$HOME$WEBFOLDER +BUILDLOGFOLDER=$HOME$LOGFOLDER +SVNFOLDER=$HOME/wip/wip/engine/release +THREADS="-j 4" +PATH=$PATH:/opt/mac/bin:/usr/local/bin:/opt/llvm/bin:/opt/intel/Compiler/11.0/083/bin/ia32/:/opt/morphos-dev/bin +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TIMETAKENTF ]; +then + rm $TIMETAKENTF +fi + +cd $BUILDLOGFOLDER/ +echo "Deleting old build logs" +rm *.txt + +cd $BUILDFOLDER/ +echo "Deleteing old binaries" +rm * >> /dev/null 2>> /dev/null +rm -rf ./win32/ +rm -rf ./linux_32bit/ +rm -rf ./linux_64bit/ +rm -rf ./morphos/ +rm -rf ./macosx_tiger_10.4/ + +echo "Making folders" +mkdir win32 +mkdir linux_32bit +mkdir linux_64bit +mkdir morphos +mkdir macosx_tiger_10.4 + +cd /home/moodles/wip/wip/engine + +echo "SVN Update" +svn update + +make clean >> /dev/null +echo "Making Linux 32bit (llvm)" +make $THREADS FTE_TARGET=linux32 CC="ccache llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_llvm.txt 2>> $BUILDLOGFOLDER/linux32_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit (clang)" +make $THREADS FTE_TARGET=linux32 CC="ccache clang -DCLANG" >> $BUILDLOGFOLDER/linux32_clang.txt 2>> $BUILDLOGFOLDER/linux32_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking clang object files" +make clean >> /dev/null +echo "Making Linux 32bit (icc)" +make $THREADS FTE_TARGET=linux32 CC="ccache icc" >> $BUILDLOGFOLDER/linux32_icc.txt 2>> $BUILDLOGFOLDER/linux32_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking icc object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (llvm)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache llvm-gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL_llvm.txt 2>> $BUILDLOGFOLDER/linux32_SDL_llvm.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.llvm"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL llvm object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (clang)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache clang -m32 -DCLANG" >> $BUILDLOGFOLDER/linux32_SDL_clang.txt 2>> $BUILDLOGFOLDER/linux32_SDL_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL clang object files" +make clean >> /dev/null +echo "Making Linux 32bit SDL (icc)" +make $THREADS FTE_TARGET=sdl BITS=32 CC="ccache icc -m32" >> $BUILDLOGFOLDER/linux32_SDL_icc.txt 2>> $BUILDLOGFOLDER/linux32_SDL_icc.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)32$/mv "&" "\132.icc"/' | sh +mv *fteqw* $BUILDFOLDER/linux_32bit/ +cd .. +echo "Nuking 32bit SDL icc object files" +make clean >> /dev/null +echo "Making Linux 32bit (gcc)" +make $THREADS FTE_TARGET=linux32 CC="ccache gcc -m32" >> $BUILDLOGFOLDER/linux32.txt 2>> $BUILDLOGFOLDER/linux32.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows\n" +make $THREADS FTE_TARGET=win32 CC="ccache i586-mingw32msvc-gcc" WINDRES="i586-mingw32msvc-windres" STRIP="i586-mingw32msvc-strip" sv-rel gl-rel mingl-rel npqtv-rel >> $BUILDLOGFOLDER/win32.txt 2>> $BUILDLOGFOLDER/win32.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making MorphOS\n" +make $THREADS FTE_TARGET=morphos CC="ccache ppc-morphos-gcc" STRIP="ppc-morphos-strip" gl-rel mingl-rel >> $BUILDLOGFOLDER/morphos.txt 2>> $BUILDLOGFOLDER/morphos.txt +cp $SVNFOLDER/* $BUILDFOLDER/morphos/ >> /dev/null 2>> /dev/null +chmod ugo+x $BUILDFOLDER/morphos/* +make clean >> /dev/null +echo "Making MacOSX" +make $THREADS FTE_TARGET=macosx CC="ccache powerpc-apple-darwin8-gcc -arch ppc" STRIP="powerpc-apple-darwin8-strip" sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/include/ -L/home/moodles/mac/lib" >> $BUILDLOGFOLDER/osx_ppc.txt 2>> $BUILDLOGFOLDER/osx_ppc.txt +make $THREADS FTE_TARGET=macosx_x86 CC="ccache i686-apple-darwin8-gcc -arch i686" STRIP="i686-apple-darwin8-strip" sv-rel gl-rel mingl-rel CFLAGS="-I/home/moodles/mac/x86/include/ -L/home/moodles/mac/x86/lib" >> $BUILDLOGFOLDER/osx_86.txt 2>> $BUILDLOGFOLDER/osx_86.txt +cp $SVNFOLDER/* $BUILDFOLDER/macosx_tiger_10.4/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Windows SDL" +make $THREADS FTE_TARGET=win32_SDL CC="ccache i586-mingw32msvc-gcc" CFLAGS="-D_SDL" WINDRES="i586-mingw32msvc-windres" STRIP="i586-mingw32msvc-strip" >> $BUILDLOGFOLDER/win32_SDL.txt 2>> $BUILDLOGFOLDER/win32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/win32/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 32bit SDL" +make $THREADS FTE_TARGET=SDL BITS=32 CC="ccache gcc -m32" >> $BUILDLOGFOLDER/linux32_SDL.txt 2>> $BUILDLOGFOLDER/linux32_SDL.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_32bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit" +make $THREADS FTE_TARGET=linux64 CC="ccache gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64.txt 2>> $BUILDLOGFOLDER/linux64.txt +cp $SVNFOLDER/* $BUILDFOLDER/linux_64bit/ >> /dev/null 2>> /dev/null +make clean >> /dev/null +echo "Making Linux 64bit (clang)" +make $THREADS FTE_TARGET=linux64 CC="ccache clang -m64 -DCLANG" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_clang.txt 2>> $BUILDLOGFOLDER/linux64_clang.txt +cd $SVNFOLDER +ls -d *fteqw* | sed 's/\(.*\)64$/mv "&" "\164.clang"/' | sh +mv *fteqw* $BUILDFOLDER/linux_64bit/ +cd .. +make clean >> /dev/null +echo "Making Linux 64bit SDL (very ambitious) (disabled)" +#make $THREADS FTE_TARGET=SDL gl-rel CC="ccache gcc -m64" LDFLAGS="-L./libs/64/ -I./libs/64/ -lz -lX11-xcb -lxcb-xlib -lxcb -lXdmcp -lXpm -lXau -lX11 -lXext" >> $BUILDLOGFOLDER/linux64_SDL.txt 2>> $BUILDLOGFOLDER/linux64_SDL.txt + +cd /home/moodles/wip/wip/engine +svn info >> $BUILDFOLDER/version.txt +echo "All done" + +END=$(date +%s) +DIFF=$(( $END - $START )) +MINS=$(( $DIFF / 60 )) +echo "(Total Compile Time (w/ ccache): $MINS minutes)" > $TIMETAKENTF +echo "Total Compile Time: $MINS minutes" + +cd /home/moodles +rm .bitchxrc +cp ./wip/.bitchxrc ./ +./BitchX -a gameservers.nj.us.quakenet.org -A -c "#fte" -n A_WIP_Gorilla diff --git a/specs/compile farm scripts/linux/buildnumber.sh b/specs/compile farm scripts/linux/buildnumber.sh new file mode 100644 index 000000000..fdb8d6d20 --- /dev/null +++ b/specs/compile farm scripts/linux/buildnumber.sh @@ -0,0 +1,30 @@ +#!/bin/bash +CURRENTYEAR=$(date +'%Y') +CURRENTDAYOFYEAR=$(date +'%j') + +while [ $CURRENTYEAR != 1998 ] +do + CURRENTYEAR=$(expr $CURRENTYEAR - 1) + + if [ `expr $CURRENTYEAR % 4` -ne 0 ] + then + echo hi > /dev/null + elif [ `expr $CURRENTYEAR % 400` -eq 0 ] + then + CURRENTDAYOFYEAR=$(expr $CURRENTDAYOFYEAR + 1) + elif [ `expr $CURRENTYEAR % 100` -eq 0 ] + then + echo hi > /dev/null + else + CURRENTDAYOFYEAR=$(expr $CURRENTDAYOFYEAR + 1) + fi + + if [ $CURRENTYEAR == 1998 ] + then + CURRENTDAYOFYEAR=$(expr $CURRENTDAYOFYEAR + 15) + else + CURRENTDAYOFYEAR=$(expr $CURRENTDAYOFYEAR + 365) + fi +done + +echo $CURRENTDAYOFYEAR diff --git a/specs/compile farm scripts/linux/ccache-alias.sh b/specs/compile farm scripts/linux/ccache-alias.sh new file mode 100644 index 000000000..c18c8846d --- /dev/null +++ b/specs/compile farm scripts/linux/ccache-alias.sh @@ -0,0 +1,8 @@ +alias gcc='ccache gcc' +alias i586-mingw32msvc-gcc='ccache i586-mingw32msvc-gcc' +alias llvm-gcc='ccache llvm-gcc' +alias clang='ccache clang' +alias icc='ccache icc' +alias powerpc-apple-darwin8-gcc='ccache powerpc-apple-darwin8-gcc' +alias i686-apple-darwin8-gcc='ccache i686-apple-darwin8-gcc' +alias ppc-morphos-gcc='ccache ppc-morphos-gcc' \ No newline at end of file diff --git a/specs/compile farm scripts/linux/count.sh b/specs/compile farm scripts/linux/count.sh new file mode 100644 index 000000000..c6ffa21b7 --- /dev/null +++ b/specs/compile farm scripts/linux/count.sh @@ -0,0 +1,81 @@ +#!/bin/bash +TEMPFILE=/tmp/moodlescountjunk.txt +TEMPFILE2=/tmp/moodlescountjunk2.txt +AUTHOR=`cat /home/moodles/fteqw/engine/svninfo.txt | grep 'Last Changed Author' | sed s/'Last Changed Author: '//` +if [ -f $TEMPFILE ]; +then + rm $TEMPFILE +fi +if [ -f $TEMPFILE2 ]; +then + rm $TEMPFILE2 +fi + +# count folder contents +LINUX32=$(ls -1 /home/moodles/htdocs/linux_32bit/ | wc -l) +LINUX64=$(ls -1 /home/moodles/htdocs/linux_64bit/ | wc -l) +WIN32=$(ls -1 /home/moodles/htdocs/win32/ | wc -l) +MORPHOS=$(ls -1 /home/moodles/htdocs/morphos/ | wc -l) +MACOSX=$(ls -1 /home/moodles/htdocs/macosx_tiger_10.4/ | wc -l) + +# known count when all binaries build +LIN32TOTAL=24 #4 compilers (GCC, ICC, CLANG & LLVM) * 3 targets (sv, mingl, gl) * 2 (SDL versions) +LIN64TOTAL=6 #2 compilers (GCC, CLANG) * 3 targets (sv, mingl, gl) +WIN32TOTAL=7 #1 compiler (MinGW32) * 3 targets (sv, mingl, gl) * 2 (SDL versions) + 1 firefox plugin (npqtv) +MORPHTOTAL=2 #1 compiler (GCC based by bigfoot) * 2 targets (gl, mingl) +MACOSTOTAL=6 #2 compilers (10.4 x86 and ppc) * 3 targets (gl, mingl, sv) + +# subtract known directory count from realtime counted directory count to find total of failed builds +L32NUM=`expr $LIN32TOTAL - $LINUX32` +L64NUM=`expr $LIN64TOTAL - $LINUX64` +W32NUM=`expr $WIN32TOTAL - $WIN32` +MORNUM=`expr $MORPHTOTAL - $MORPHOS` +MACNUM=`expr $MACOSTOTAL - $MACOSX` + +if [ $L32NUM -ne 0 ]; +then + echo "$L32NUM/$LIN32TOTAL Lin32 failed" >> $TEMPFILE +fi +if [ $L64NUM -ne 0 ]; +then + echo " $L64NUM/$LIN64TOTAL Lin64 failed" >> $TEMPFILE +fi +if [ $W32NUM -ne 0 ]; +then + echo " $W32NUM/$WIN32TOTAL Win32 failed" >> $TEMPFILE +fi +if [ $MORNUM -ne 0 ]; +then + echo " $MORNUM/$MORPHTOTAL MorphOS failed" >> $TEMPFILE +fi +if [ $MACNUM -ne 0 ]; +then + echo " $MACNUM/$MACOSTOTAL MacOSX 10.4 failed" >> $TEMPFILE +fi +if [ $L32NUM -eq 0 ] && [ $L64NUM -eq 0 ] && [ $W32NUM -eq 0 ] && [ $MORNUM -eq 0 ] && [ $MACNUM -eq 0 ]; +then + echo "Everything built successfully" >> $TEMPFILE + +elif [ $LIN32TOTAL -eq 0 ] && [ $LIN64TOTAL -eq 0 ] && [ $WIN32TOTAL -eq 0 ] && [ $MORPHTOTAL -eq 0 ] && [ $MACOSTOTAL -eq 0 ]; +then + echo " Nothing built at all!" >> $TEMPFILE +elif [ $L32NUM -ne 0 ] && [ $L64NUM -ne 0 ] && [ $W32NUM -ne 0 ] && [ $MORNUM -ne 0 ] && [ $MACNUM -ne 0 ]; +then + if [ $AUTHOR == "acceptthis" ]; + then + echo " At least 1 target from each OS failed to build, on the bright side, at least everything didn't compile (Your typical average Spike commit, breaking Lunix as usual)" >> $TEMPFILE + else + echo " At least 1 target from each OS failed to build, on the bright side, at least everythinng didn't compile" >> $TEMPFILE + fi +else + if [ $AUTHOR == "acceptthis" ]; + then + echo " Everything else built successfully (Your typical average Spike commit, breaking Lunix as usual)" >> $TEMPFILE + else + echo " Everything else built successfully" >> $TEMPFILE + fi +fi + +tr "\n" "," <$TEMPFILE | sed "s/,$/\./" >$TEMPFILE2 +echo -e '\n' >> $TEMPFILE2 +cat $TEMPFILE2 diff --git a/specs/compile farm scripts/linux/count_wip.sh b/specs/compile farm scripts/linux/count_wip.sh new file mode 100644 index 000000000..347e624b6 --- /dev/null +++ b/specs/compile farm scripts/linux/count_wip.sh @@ -0,0 +1,81 @@ +#!/bin/bash +TEMPFILE=/tmp/moodlescountjunk.txt +TEMPFILE2=/tmp/moodlescountjunk2.txt +AUTHOR=`cat /home/moodles/wip/wip/engine/svninfo.txt | grep 'Last Changed Author' | sed s/'Last Changed Author: '//` +if [ -f $TEMPFILE ]; +then + rm $TEMPFILE +fi +if [ -f $TEMPFILE2 ]; +then + rm $TEMPFILE2 +fi + +# count folder contents +LINUX32=$(ls -1 /home/moodles/htdocs/unstable/linux_32bit/ | wc -l) +LINUX64=$(ls -1 /home/moodles/htdocs/unstable/linux_64bit/ | wc -l) +WIN32=$(ls -1 /home/moodles/htdocs/unstable/win32/ | wc -l) +MORPHOS=$(ls -1 /home/moodles/htdocs/unstable/morphos/ | wc -l) +MACOSX=$(ls -1 /home/moodles/htdocs/unstable/macosx_tiger_10.4/ | wc -l) + +# known count when all binaries build +LIN32TOTAL=16 # 4 compilers (GCC, ICC, CLANG & LLVM) * 3 targets (sv, mingl, gl) * 2 (SDL versions) +LIN64TOTAL=4 # 2 compilers (GCC, CLANG) * 3 targets (sv, mingl, gl) +WIN32TOTAL=5 # 1 compiler (MinGW32) * 3 targets (sv, mingl, gl) * 2 (SDL versions) + 1 firefox plugin (npqtv) +MORPHTOTAL=1 # 1 compiler (GCC based by bigfoot) * 2 targets (gl, mingl) +MACOSTOTAL=4 # 2 compilers (10.4 x86 and ppc) * 3 targets (gl, mingl, sv) + +# subtract known directory count from realtime counted directory count to find total of failed builds +L32NUM=`expr $LIN32TOTAL - $LINUX32` +L64NUM=`expr $LIN64TOTAL - $LINUX64` +W32NUM=`expr $WIN32TOTAL - $WIN32` +MORNUM=`expr $MORPHTOTAL - $MORPHOS` +MACNUM=`expr $MACOSTOTAL - $MACOSX` + +if [ $L32NUM -ne 0 ]; +then + echo "$L32NUM/$LIN32TOTAL Lin32 failed" >> $TEMPFILE +fi +if [ $L64NUM -ne 0 ]; +then + echo " $L64NUM/$LIN64TOTAL Lin64 failed" >> $TEMPFILE +fi +if [ $W32NUM -ne 0 ]; +then + echo " $W32NUM/$WIN32TOTAL Win32 failed" >> $TEMPFILE +fi +if [ $MORNUM -ne 0 ]; +then + echo " $MORNUM/$MORPHTOTAL MorphOS failed" >> $TEMPFILE +fi +if [ $MACNUM -ne 0 ]; +then + echo " $MACNUM/$MACOSTOTAL MacOSX 10.4 failed" >> $TEMPFILE +fi +if [ $L32NUM -eq 0 ] && [ $L64NUM -eq 0 ] && [ $W32NUM -eq 0 ] && [ $MORNUM -eq 0 ] && [ $MACNUM -eq 0 ]; +then + echo "Everything built successfully" >> $TEMPFILE + +elif [ $LIN32TOTAL -eq 0 ] && [ $LIN64TOTAL -eq 0 ] && [ $WIN32TOTAL -eq 0 ] && [ $MORPHTOTAL -eq 0 ] && [ $MACOSTOTAL -eq 0 ]; +then + echo " Nothing built at all!" >> $TEMPFILE +elif [ $L32NUM -ne 0 ] && [ $L64NUM -ne 0 ] && [ $W32NUM -ne 0 ] && [ $MORNUM -ne 0 ] && [ $MACNUM -ne 0 ]; +then + if [ $AUTHOR == "acceptthis" ]; + then + echo " At least 1 target from each OS failed to build, on the bright side, at least everything didn't compile (Your typical average Spike commit, breaking Lunix as usual)" >> $TEMPFILE + else + echo " At least 1 target from each OS failed to build, on the bright side, at least everythinng didn't compile" >> $TEMPFILE + fi +else + if [ $AUTHOR == "acceptthis" ]; + then + echo " Everything else built successfully (Your typical average Spike commit, breaking Lunix as usual)" >> $TEMPFILE + else + echo " Everything else built successfully" >> $TEMPFILE + fi +fi + +tr "\n" "," <$TEMPFILE | sed "s/,$/\./" >$TEMPFILE2 +echo -e '\n' >> $TEMPFILE2 +cat $TEMPFILE2 diff --git a/specs/compile farm scripts/linux/svninfo.sh b/specs/compile farm scripts/linux/svninfo.sh new file mode 100644 index 000000000..8fef34523 --- /dev/null +++ b/specs/compile farm scripts/linux/svninfo.sh @@ -0,0 +1,32 @@ +TEMP1=/tmp/moodlesjunk1.txt +TEMP2=/tmp/moodlesjunk2.txt +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TEMP1 ]; +then + rm $TEMP1 +fi +if [ -f $TEMP2 ]; +then + rm $TEMP2 +fi + +cd /home/moodles/fteqw/engine +svn info > svninfo.txt +echo "SVN updated by:" >> $TEMP1 +AUTHOR=`cat svninfo.txt | grep 'Last Changed Author' | sed s/'Last Changed Author: '//` +echo $AUTHOR >> $TEMP1 +if [ $AUTHOR == "acceptthis" ]; +then + echo "(AKA Spike)" >> $TEMP1 +elif [ $AUTHOR == "isthisinuse" ]; +then + echo "(AKA bigfoot)" >> $TEMP1 +fi +echo "*" >> $TEMP1 +cat svninfo.txt | grep 'Revision' | sed s/'Revision'/'Revision'/ >> $TEMP1 +echo "(Build #"`~/buildnumber.sh`")" >> $TEMP1 +echo "* New binaries @ http://nightly.fteqw.com" >> $TEMP1 +cat /tmp/timetaken.txt >> $TEMP1 +tr "\n" " " <$TEMP1 >$TEMP2 +echo -e '\n' >> $TEMP2 +cat $TEMP2 diff --git a/specs/compile farm scripts/linux/svninfo_wip.sh b/specs/compile farm scripts/linux/svninfo_wip.sh new file mode 100644 index 000000000..35bbf918b --- /dev/null +++ b/specs/compile farm scripts/linux/svninfo_wip.sh @@ -0,0 +1,32 @@ +TEMP1=/tmp/moodlesjunk1.txt +TEMP2=/tmp/moodlesjunk2.txt +TIMETAKENTF=/tmp/timetaken.txt +if [ -f $TEMP1 ]; +then + rm $TEMP1 +fi +if [ -f $TEMP2 ]; +then + rm $TEMP2 +fi + +cd /home/moodles/wip/wip/engine +svn info > svninfo.txt +echo "4Unstable WIP SVN branch updated by:" >> $TEMP1 +AUTHOR=`cat svninfo.txt | grep 'Last Changed Author' | sed s/'Last Changed Author: '//` +echo $AUTHOR >> $TEMP1 +if [ $AUTHOR == "acceptthis" ]; +then + echo "(AKA Spike)" >> $TEMP1 +elif [ $AUTHOR == "isthisinuse" ]; +then + echo "(AKA bigfoot)" >> $TEMP1 +fi +echo "*" >> $TEMP1 +cat svninfo.txt | grep 'Revision' | sed s/'Revision'/'Revision'/ >> $TEMP1 +echo "(Build #"`~/buildnumber.sh`")" >> $TEMP1 +echo "* New binaries @ http://www.triptohell.info/moodles/unstable/" >> $TEMP1 +cat /tmp/timetaken.txt >> $TEMP1 +tr "\n" " " <$TEMP1 >$TEMP2 +echo -e '\n' >> $TEMP2 +cat $TEMP2 diff --git a/specs/compile farm scripts/macosx/build.sh b/specs/compile farm scripts/macosx/build.sh new file mode 100644 index 000000000..615926720 --- /dev/null +++ b/specs/compile farm scripts/macosx/build.sh @@ -0,0 +1,48 @@ +rm version.txt +rm macosx_fteqw* +rm *.zip + +svn update + +svn info >> version.txt + +REV=`cat version.txt | grep 'Last Changed Rev:' | sed s/'Last Changed Rev: '//` +DATE=`date +%B-%d-%Y` + +make clean + +make FTE_TARGET=macosx gl-rel mingl-rel sv-rel + +cd release + +mv macosx_fteqw.mingl ../macosx_fteqw.mingl_x86 +mv macosx_fteqw.gl ../macosx_fteqw.gl_x86 +mv macosx_fteqw.sv ../macosx_fteqw.sv_x86 + +cd .. + +make clean + +mv Makefile Makefile.backup +mv GoodMakefile Makefile + +make FTE_TARGET=macosx gl-rel mingl-rel sv-rel CFLAGS="-arch ppc -L/Users/pcwiz/ppc-lib/lib/ -I/Users/pcwiz/ppc-lib/include/" + +mv Makefile GoodMakefile +mv Makefile.backup Makefile + +cd release + +mv macosx_fteqw.mingl ../macosx_fteqw.mingl_ppc +mv macosx_fteqw.gl ../macosx_fteqw.gl_ppc +mv macosx_fteqw.sv ../macosx_fteqw.sv_ppc + +cd .. + +lipo -create macosx_fteqw.gl_x86 macosx_fteqw.gl_ppc -output macosx_fteqw.gl +lipo -create macosx_fteqw.mingl_x86 macosx_fteqw.mingl_ppc -output macosx_fteqw.mingl +lipo -create macosx_fteqw.sv_x86 macosx_fteqw.sv_ppc -output macosx_fteqw.sv + +zip -9 -v "macosx_Leopard_10.5_-fteqwgl(r$REV $DATE).zip" macosx_fteqw.gl version.txt LICENSE +zip -9 -v "macosx_Leopard_10.5_-fteqwmingl(r$REV $DATE).zip" macosx_fteqw.mingl version.txt LICENSE +zip -9 -v "macosx_Leopard_10.5_-fteqwsv(r$REV $DATE).zip" macosx_fteqw.sv version.txt LICENSE