annotate PCbuild/make_buildinfo.c @ 54294:dba767bc3155 legacy-trunk

remove mention of old ctypes version
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 20:59:09 +0000
parents a6319ab49e0a
children fd25030223b0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
1 #include <windows.h>
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
2 #include <sys/types.h>
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
3 #include <sys/stat.h>
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
4 #include <stdio.h>
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
5
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
6 #define CMD_SIZE 500
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
7
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
8 /* This file creates the getbuildinfo.o object, by first
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
9 invoking subwcrev.exe (if found), and then invoking cl.exe.
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
10 As a side effect, it might generate PCBuild\getbuildinfo2.c
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
11 also. If this isn't a subversion checkout, or subwcrev isn't
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
12 found, it compiles ..\\Modules\\getbuildinfo.c instead.
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
13
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
14 Currently, subwcrev.exe is found from the registry entries
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
15 of TortoiseSVN.
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
16
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
17 No attempt is made to place getbuildinfo.o into the proper
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
18 binary directory. This isn't necessary, as this tool is
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
19 invoked as a pre-link step for pythoncore, so that overwrites
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
20 any previous getbuildinfo.o.
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
21
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
22 */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
23
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
24 int make_buildinfo2()
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
25 {
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
26 struct _stat st;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
27 HKEY hTortoise;
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
28 char command[CMD_SIZE+1];
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
29 DWORD type, size;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
30 if (_stat(".svn", &st) < 0)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
31 return 0;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
32 /* Allow suppression of subwcrev.exe invocation if a no_subwcrev file is present. */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
33 if (_stat("no_subwcrev", &st) == 0)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
34 return 0;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
35 if (RegOpenKey(HKEY_LOCAL_MACHINE, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS &&
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
36 RegOpenKey(HKEY_CURRENT_USER, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
37 /* Tortoise not installed */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
38 return 0;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
39 command[0] = '"'; /* quote the path to the executable */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
40 size = sizeof(command) - 1;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
41 if (RegQueryValueEx(hTortoise, "Directory", 0, &type, command+1, &size) != ERROR_SUCCESS ||
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
42 type != REG_SZ)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
43 /* Registry corrupted */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
44 return 0;
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
45 strcat_s(command, CMD_SIZE, "bin\\subwcrev.exe");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
46 if (_stat(command+1, &st) < 0)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
47 /* subwcrev.exe not part of the release */
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
48 return 0;
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
49 strcat_s(command, CMD_SIZE, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
50 puts(command); fflush(stdout);
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
51 if (system(command) < 0)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
52 return 0;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
53 return 1;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
54 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
55
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
56 int main(int argc, char*argv[])
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
57 {
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
58 char command[500] = "cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL ";
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
59 int do_unlink, result;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
60 if (argc != 2) {
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
61 fprintf(stderr, "make_buildinfo $(ConfigurationName)\n");
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
62 return EXIT_FAILURE;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
63 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
64 if (strcmp(argv[1], "Release") == 0) {
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
65 strcat_s(command, CMD_SIZE, "-MD ");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
66 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
67 else if (strcmp(argv[1], "Debug") == 0) {
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
68 strcat_s(command, CMD_SIZE, "-D_DEBUG -MDd ");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
69 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
70 else if (strcmp(argv[1], "ReleaseItanium") == 0) {
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
71 strcat_s(command, CMD_SIZE, "-MD /USECL:MS_ITANIUM ");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
72 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
73 else if (strcmp(argv[1], "ReleaseAMD64") == 0) {
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
74 strcat_s(command, CMD_SIZE, "-MD ");
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
75 strcat_s(command, CMD_SIZE, "-MD /USECL:MS_OPTERON ");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
76 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
77 else {
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
78 fprintf(stderr, "unsupported configuration %s\n", argv[1]);
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
79 return EXIT_FAILURE;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
80 }
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
81
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
82 if ((do_unlink = make_buildinfo2()))
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
83 strcat_s(command, CMD_SIZE, "getbuildinfo2.c -DSUBWCREV ");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
84 else
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
85 strcat_s(command, CMD_SIZE, "..\\Modules\\getbuildinfo.c");
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
86 strcat_s(command, CMD_SIZE, " -Fogetbuildinfo.o -I..\\Include -I..\\PC");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
87 puts(command); fflush(stdout);
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
88 result = system(command);
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
89 if (do_unlink)
44226
aad65a2424e3 Merged revisions 59376-59406 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents: 43891
diff changeset
90 _unlink("getbuildinfo2.c");
43891
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
91 if (result < 0)
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
92 return EXIT_FAILURE;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
93 return 0;
38f63419abd6 Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects.
Christian Heimes <christian@cheimes.de>
parents:
diff changeset
94 }