OLD | NEW |
1 /* Configure script for libxslt, specific for Windows with Scripting Host. | 1 /* Configure script for libxslt, specific for Windows with Scripting Host. |
2 * | 2 * |
3 * This script will configure the libxslt build process and create necessary fil
es. | 3 * This script will configure the libxslt build process and create necessary fil
es. |
4 * Run it with an 'help', or an invalid option and it will tell you what options | 4 * Run it with an 'help', or an invalid option and it will tell you what options |
5 * it accepts. | 5 * it accepts. |
6 * | 6 * |
7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> | 7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> |
8 */ | 8 */ |
9 | 9 |
10 /* The source directory, relative to the one where this file resides. */ | 10 /* The source directory, relative to the one where this file resides. */ |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 if (error != 0) { | 454 if (error != 0) { |
455 WScript.Echo("Configuration failed, aborting."); | 455 WScript.Echo("Configuration failed, aborting."); |
456 WScript.Quit(error); | 456 WScript.Quit(error); |
457 } | 457 } |
458 | 458 |
459 // Create the Makefile. | 459 // Create the Makefile. |
460 var fso = new ActiveXObject("Scripting.FileSystemObject"); | 460 var fso = new ActiveXObject("Scripting.FileSystemObject"); |
461 var makefile = ".\\Makefile.msvc"; | 461 var makefile = ".\\Makefile.msvc"; |
462 if (compiler == "mingw") | 462 if (compiler == "mingw") |
463 makefile = ".\\Makefile.mingw"; | 463 makefile = ".\\Makefile.mingw"; |
464 var new_makefile = ".\\Makefile"; | 464 fso.CopyFile(makefile, ".\\Makefile", true); |
465 var f = fso.FileExists(new_makefile); | |
466 if (f) { | |
467 var t = fso.GetFile(new_makefile); | |
468 t.Attributes =0; | |
469 } | |
470 fso.CopyFile(makefile, new_makefile, true); | |
471 WScript.Echo("Created Makefile."); | 465 WScript.Echo("Created Makefile."); |
472 // Create the config.h. | 466 // Create the config.h. |
473 var confighsrc = "..\\libxslt\\win32config.h"; | 467 var confighsrc = "..\\libxslt\\win32config.h"; |
474 var configh = "..\\config.h"; | 468 var configh = "..\\config.h"; |
475 var f = fso.FileExists(configh); | 469 var f = fso.FileExists(configh); |
476 if (f) { | 470 if (f) { |
477 var t = fso.GetFile(configh); | 471 var t = fso.GetFile(configh); |
478 t.Attributes =0; | 472 t.Attributes =0; |
479 } | 473 } |
480 fso.CopyFile(confighsrc, configh, true); | 474 fso.CopyFile(confighsrc, configh, true); |
(...skipping 23 matching lines...) Expand all Loading... |
504 txtOut += " Install prefix: " + buildPrefix + "\n"; | 498 txtOut += " Install prefix: " + buildPrefix + "\n"; |
505 txtOut += " Put tools in: " + buildBinPrefix + "\n"; | 499 txtOut += " Put tools in: " + buildBinPrefix + "\n"; |
506 txtOut += " Put headers in: " + buildIncPrefix + "\n"; | 500 txtOut += " Put headers in: " + buildIncPrefix + "\n"; |
507 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; | 501 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; |
508 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; | 502 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; |
509 txtOut += " Include path: " + buildInclude + "\n"; | 503 txtOut += " Include path: " + buildInclude + "\n"; |
510 txtOut += " Lib path: " + buildLib + "\n"; | 504 txtOut += " Lib path: " + buildLib + "\n"; |
511 WScript.Echo(txtOut); | 505 WScript.Echo(txtOut); |
512 | 506 |
513 // Done. | 507 // Done. |
OLD | NEW |