aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-10 18:33:41 +0000
committerYang Tse <yangsita@gmail.com>2008-08-10 18:33:41 +0000
commit68cfe929c4124fbf231aea04b17d81febd388ec6 (patch)
tree2029bcf8c375804f5e69375b9f4a7e64cbe9905f /tests
parent6237fd2c16931c416e14c99f4d413460633481b9 (diff)
Fix NetWare curlbuild.h
NetWare curlbuild.h settings depend on whether LIBC or CLIB is used. The NetWare specific Makefile is capable of knowing which target is being built. So, finally, the NetWare Makefile will take care of generating curlbuild.h
Diffstat (limited to 'tests')
-rwxr-xr-xtests/testcurl.pl14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index a898eba3e..6342e8ac5 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -486,9 +486,15 @@ if ($configurebuild) {
system("xcopy /s /q ..\\$CURLDIR .");
system("buildconf.bat");
}
- elsif (($^O eq 'linux') || ($targetos =~ /netware/)) {
- system("cp -afr ../$CURLDIR/* .");
- system("cp -af ../$CURLDIR/Makefile.dist Makefile");
+ elsif ($targetos =~ /netware/) {
+ system("cp -afr ../$CURLDIR/* .");
+ system("cp -af ../$CURLDIR/Makefile.dist Makefile");
+ system("$make -i -C lib -f Makefile.netware prebuild");
+ system("$make -i -C src -f Makefile.netware prebuild");
+ }
+ elsif ($^O eq 'linux') {
+ system("cp -afr ../$CURLDIR/* .");
+ system("cp -af ../$CURLDIR/Makefile.dist Makefile");
system("cp -af ../$CURLDIR/include/curl/curlbuild.h.dist ./include/curl/curlbuild.h");
system("$make -i -C lib -f Makefile.$targetos prebuild");
system("$make -i -C src -f Makefile.$targetos prebuild");
@@ -498,7 +504,7 @@ if ($configurebuild) {
logit "display include/curl/curlbuild.h";
if(open(F, "include/curl/curlbuild.h")) {
while (<F>) {
- print if /^ *#define/;
+ print if (($1 =~ /^ *#define/) && ($1 !~ /^ *#define.*__CURL_CURLBUILD_H/));
}
close(F);
}