summaryrefslogtreecommitdiffstats
path: root/WebKitTools
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-11 12:33:33 +0100
committerBen Murdoch <benm@google.com>2009-08-11 12:33:33 +0100
commit1489f497e23bcd455aa036faa87f0451fc10a63c (patch)
tree134827a6f929d8b17833d2e98c0e6dbc2b8f64e7 /WebKitTools
parent3ac4dcc7e27db648f597d2062fd84997544165f1 (diff)
downloadexternal_webkit-1489f497e23bcd455aa036faa87f0451fc10a63c.zip
external_webkit-1489f497e23bcd455aa036faa87f0451fc10a63c.tar.gz
external_webkit-1489f497e23bcd455aa036faa87f0451fc10a63c.tar.bz2
Makefile and webkitmerge tool edits needed to merge with latest webkit.
Diffstat (limited to 'WebKitTools')
-rw-r--r--WebKitTools/android/webkitmerge/webkitmerge.cpp57
1 files changed, 29 insertions, 28 deletions
diff --git a/WebKitTools/android/webkitmerge/webkitmerge.cpp b/WebKitTools/android/webkitmerge/webkitmerge.cpp
index 768da82..637a1ed 100644
--- a/WebKitTools/android/webkitmerge/webkitmerge.cpp
+++ b/WebKitTools/android/webkitmerge/webkitmerge.cpp
@@ -640,34 +640,35 @@ char* GetMakeAndExceptions(const char* dir, const char* filename, size_t* makeSi
break;
start += strlen(start) + 1;
} while (start < makeFile + *makeSize);
- myassert(start[0] != '\0');
- string excludedDirs = "-e '/\\.vcproj\\// d' -e '/\\.svn\\// d' ";
- do {
- start += strlen(start) + 1;
- char* exceptionDirStart = start;
- if (strncmp(exceptionDirStart, "#\t", 2) != 0) {
- myassert(exceptionDirStart[0] == '\0');
- break;
- }
- exceptionDirStart += 2;
- char* exceptionDirEnd = exceptionDirStart;
- do
- exceptionDirEnd = strchr(exceptionDirEnd, '\\');
- while (exceptionDirEnd && *++exceptionDirEnd == '/');
- myassert(exceptionDirEnd);
- --exceptionDirEnd;
- myassert(exceptionDirEnd[-1] == ' ');
- myassert(exceptionDirEnd[-2] == '*');
- myassert(exceptionDirEnd[-3] == '/');
- exceptionDirEnd[-3] = '\0';
- excludedDirs += "-e '/";
- if (exceptionDirStart[0] == '/')
- excludedDirs += "\\";
- excludedDirs += exceptionDirStart;
- excludedDirs += "\\// d' ";
- start = exceptionDirEnd;
- } while (true);
- *excludedDirsPtr = excludedDirs;
+ if (start[0] != '\0') {
+ string excludedDirs = "-e '/\\.vcproj\\// d' -e '/\\.svn\\// d' ";
+ do {
+ start += strlen(start) + 1;
+ char* exceptionDirStart = start;
+ if (strncmp(exceptionDirStart, "#\t", 2) != 0) {
+ myassert(exceptionDirStart[0] == '\0');
+ break;
+ }
+ exceptionDirStart += 2;
+ char* exceptionDirEnd = exceptionDirStart;
+ do {
+ exceptionDirEnd = strchr(exceptionDirEnd, '\\');
+ } while (exceptionDirEnd && *++exceptionDirEnd == '/');
+ myassert(exceptionDirEnd);
+ --exceptionDirEnd;
+ myassert(exceptionDirEnd[-1] == ' ');
+ myassert(exceptionDirEnd[-2] == '*');
+ myassert(exceptionDirEnd[-3] == '/');
+ exceptionDirEnd[-3] = '\0';
+ excludedDirs += "-e '/";
+ if (exceptionDirStart[0] == '/')
+ excludedDirs += "\\";
+ excludedDirs += exceptionDirStart;
+ excludedDirs += "\\// d' ";
+ start = exceptionDirEnd;
+ } while (true);
+ *excludedDirsPtr = excludedDirs;
+ }
*startPtr = start;
// optionally look for android-specific files
char* makeEnd = makeFile + *makeSize;