1
0
Fork 0

merge from trunk, fixed #330: fix win32 build with no indent.exe nor cat.exe

git-svn-id: svn://svn.lighttpd.net/xcache/branches/3.0@1419 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2013-10-10 07:42:34 +00:00
parent 799496424c
commit 0b00899d21
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@ ChangeLog
* cacher
* fixed #324: xcache.readonly_protection = Off cause SEGV under mass concurrent
* fixed #323: refix locking impl for threaded env
* build
* win32: fix build with no indent.exe nor cat.exe
3.0.3 2013-06-18
ChangeLog

View File

@ -130,15 +130,15 @@ xc_cacher.c \
frag = frag.replace(/\$\(builddir\)/g, builddir);
frag = frag.replace(/processor\//g, "processor\\");
frag = frag.replace(/\.lo:/g, ".obj:");
frag = frag.replace(/.*\$\(CC\).* -E (.*) -o (.*)/, ccrule + " /E $1 > $2");
frag = frag.replace(/.*\$\(CC\).* -E (.*) -o (.*)/g, ccrule + " /E $1 > $2");
frag = frag.replace(/ -o /g, " /Fo");
frag = frag.replace(/cp /g, "copy ");
frag = frag.replace(/mv /g, "move ");
frag = frag.replace(/ \|\| /g, "\r\n\tif errorlevel 1 ");
frag = frag.replace(/ && /g, "\r\n\tif not errorlevel 1 ");
if (indent == '') {
frag = frag.replace(/\| +\$\(XCACHE_INDENT\)/, '');
frag = frag.replace(/\$\(XCACHE_INDENT\) < /, 'type ');
frag = frag.replace(/\| *\$\(XCACHE_INDENT\)/g, '');
frag = frag.replace(/\$\(XCACHE_INDENT\) *< */g, 'type ');
}
MFO.WriteLine(frag);
ADD_FLAG("CFLAGS_XCACHE", "/I " + builddir);