Linking executable: ..\..\ufo.exe
.objs\client\src\client\renderer\r_model.o:r_model.c:(.text+0x40a): undefined reference to `strcasestr'
V:\MinGW\ufoai\src\client\renderer\r_model.c
line 160
if (strcasestr(mod->name, ".obj")) {
http://www.koders.com/c/fid1740146D1762BACEF195478A80AC725EA2BB64E3.aspx?s=md5> c-strcasestr.c -- case insensitive substring search in C locale
no c-strcasestr.h found
*Edit
I've modified compile_maps.bat
to speed up mapgeneration dramaticaly
first why and howWe know ufo2map own a -onlynewer switch
but sometimes we can end up with a map "missmatch" (
ufo2map think the bsp is up2date
while the bsp is'nt
)
This is caused by the routine ufo2map uses to determine *.bsp actuality
Its just a timestamp compare between *.map and *.bsp
if *.bsp is newer than *.map then *.bsp is up2date
And thats the "problem"
If you compile maps while a dev releases a new map
and lets imagine this new map is the last map that will be compiled
than you end up with a bsp accurate for you current build
But on the next build
svn download those new map and ufo2map compare both timestamps
and think the bsp is up2date 'couse your bsp was build after the new svn release
So how to prevent this?!
I'm using a hashsum for a while and its working quite well
I store a md5 hashsum for the last full mapcompilation
after a SVN update i generate a new hashsum for *.map and *.footsteps
and compare both against each other
Those files that have been changed will be deleted (*.bsp) and ufo2map is called with -onlynewer
Here we go
download the zip and extract it into your ufoai scr folder
it must be stored at contrib\scripts
The script depends on fsum.exe and diff.exe
fsum.exe is free
slavasoftand diff.exe is a c++ project of mine (source is included [I know i'm not an expert
])
cangelog:
.) check for NT system
.) check if you relay want to call the script witout a parameter
.) add arg /?
.) add /onlynewer (for the hashsum)
.) case insesitive argv (windows style)
.) complete error handling
.) diskspace check
.) sucess or error message if you use /shutdown (during next login)
.) complete new code for compilemap
.) counter for maps that must be compiled
[attachment deleted by admin]