Odamex Message Boards

Welcome, Guest. Please login or register.  Did you miss your activation email?
May 21, 2012, 13:38:23
Pages: [1] Print
Author Thread: Windows builds  (Read 1229 times)
exp(x)
Posts: 10

May 06, 2008, 23:01:12
I've added an article in the wiki on compiling Windows binaries on linux:
http://odamex.net/wiki/Cross_compiling_for_Windows_using_MinGW

And by popular demand, I'm making regular subversion builds again:
http://nescientia.dyndns.org/odamex-win32/

Don't bitch about the slow download speed.
Logged View Profile
exp(x)
Posts: 10

May 28, 2008, 18:59:20
For those who are interested, here is the script I use:

Code: (update-odamex-win32)
#!/bin/bash
(
PATH="/usr/i586-mingw32msvc/bin:$PATH"
cd /opt/odamex-win32

make -f Makefile.win clean
svn cleanup

let REVISION=`svn info | grep 'Revision: ' | sed 's/Revision: //'`+1
if [ -n "`svn update -r $REVISION | grep "Updated to revision"`" ]; then
        make -f Makefile.win client server
        i586-mingw32msvc-strip bin/*.exe
        zip -j odamex-win32-r$REVISION.zip bin/odamex.exe bin/odasrv.exe \
                odamex.wad odasrv.cfg /usr/i586-mingw32msvc/lib/SDL.dll \
                /usr/i586-mingw32msvc/lib/SDL_mixer.dll README
        curlftpfs ftp.onid.oregonstate.edu /media/onid
        mv odamex-win32-r*.zip /media/onid/public_html/odamex-win32/
        rm `ls -tr /media/onid/public_html/odamex-win32/* | head -n-20`
        fusermount -u /media/onid
        make -f Makefile.win clean
fi
) > /opt/update-odamex-win32.log 2>&1

Curlftpfs will read ~/.netrc for the ftp server username and address.

Code: (.netrc)
machine ftp.onid.oregonstate.edu
login xxxxxx
password xxxxxx

I have cron run this every 10 minutes.

Code: (crontab)
# m    h  dom mon dow   command
  */10 *  *   *   *     /opt/update-odamex-win32
« Last Edit: November 24, 2008, 20:19:02 by exp(x) »
Logged View Profile
exp(x)
Posts: 10

June 17, 2008, 18:14:55
As long as I can keep stealing wifi, builds are going to be here: http://oregonstate.edu/~delbelb/odamex-win32/
Logged View Profile
Pages: [1] Print
 
Jump to:

Page created in 0.032 seconds with 15 queries.