Fossil SCM

Merge in changes from wolfgangFormat2CSS_2, with a few minor corrections.

drh 2010-10-07 18:40 trunk merge
Commit b525add4e0dc74fcd5f1422f8bb1f28bebd4760e
+33
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
2525
#ifndef _FILE_OFFSET_BITS
2626
# define _FILE_OFFSET_BITS 64
2727
#endif
2828
#define _LARGEFILE_SOURCE 1
2929
30
+#ifndef _RC_COMPILE_
3031
3132
/*
3233
** System header files used by all modules
3334
*/
3435
#include <unistd.h>
@@ -36,10 +37,13 @@
3637
#include <stdlib.h>
3738
#include <ctype.h>
3839
#include <string.h>
3940
#include <stdarg.h>
4041
#include <assert.h>
42
+
43
+#endif
44
+
4145
#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
4246
# if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
4347
typedef int socklen_t;
4448
# endif
4549
# ifndef _WIN32
@@ -49,10 +53,37 @@
4953
# include <sys/types.h>
5054
# include <signal.h>
5155
# include <pwd.h>
5256
#endif
5357
58
+/*
59
+** Define the compiler variant, used to compile the project
60
+*/
61
+#if !defined(COMPILER_NAME)
62
+# if defined(__DMC__)
63
+# define COMPILER_NAME "dmc"
64
+# elif defined(__POCC__)
65
+# if defined(_M_X64)
66
+# define COMPILER_NAME "pellesc64"
67
+# else
68
+# define COMPILER_NAME "pellesc32"
69
+# endif
70
+# elif defined(_MSC_VER)
71
+# define COMPILER_NAME "msc"
72
+# elif defined(__MINGW32__)
73
+# define COMPILER_NAME "mingw32"
74
+# elif defined(_WIN32)
75
+# define COMPILER_NAME "win32"
76
+# elif defined(__GNUC__)
77
+# define COMPILER_NAME "gcc-" __VERSION__
78
+# else
79
+# define COMPILER_NAME "unknown"
80
+# endif
81
+#endif
82
+
83
+#ifndef _RC_COMPILE_
84
+
5485
#include "sqlite3.h"
5586
5687
/*
5788
** Typedef for a 64-bit integer
5889
*/
@@ -124,5 +155,7 @@
124155
#endif
125156
#ifndef CODESET
126157
# undef FOSSIL_I18N
127158
# define FOSSIL_I18N 0
128159
#endif
160
+
161
+#endif /* _RC_COMPILE_ */
129162
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
25 #ifndef _FILE_OFFSET_BITS
26 # define _FILE_OFFSET_BITS 64
27 #endif
28 #define _LARGEFILE_SOURCE 1
29
 
30
31 /*
32 ** System header files used by all modules
33 */
34 #include <unistd.h>
@@ -36,10 +37,13 @@
36 #include <stdlib.h>
37 #include <ctype.h>
38 #include <string.h>
39 #include <stdarg.h>
40 #include <assert.h>
 
 
 
41 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
42 # if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
43 typedef int socklen_t;
44 # endif
45 # ifndef _WIN32
@@ -49,10 +53,37 @@
49 # include <sys/types.h>
50 # include <signal.h>
51 # include <pwd.h>
52 #endif
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54 #include "sqlite3.h"
55
56 /*
57 ** Typedef for a 64-bit integer
58 */
@@ -124,5 +155,7 @@
124 #endif
125 #ifndef CODESET
126 # undef FOSSIL_I18N
127 # define FOSSIL_I18N 0
128 #endif
 
 
129
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
25 #ifndef _FILE_OFFSET_BITS
26 # define _FILE_OFFSET_BITS 64
27 #endif
28 #define _LARGEFILE_SOURCE 1
29
30 #ifndef _RC_COMPILE_
31
32 /*
33 ** System header files used by all modules
34 */
35 #include <unistd.h>
@@ -36,10 +37,13 @@
37 #include <stdlib.h>
38 #include <ctype.h>
39 #include <string.h>
40 #include <stdarg.h>
41 #include <assert.h>
42
43 #endif
44
45 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
46 # if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
47 typedef int socklen_t;
48 # endif
49 # ifndef _WIN32
@@ -49,10 +53,37 @@
53 # include <sys/types.h>
54 # include <signal.h>
55 # include <pwd.h>
56 #endif
57
58 /*
59 ** Define the compiler variant, used to compile the project
60 */
61 #if !defined(COMPILER_NAME)
62 # if defined(__DMC__)
63 # define COMPILER_NAME "dmc"
64 # elif defined(__POCC__)
65 # if defined(_M_X64)
66 # define COMPILER_NAME "pellesc64"
67 # else
68 # define COMPILER_NAME "pellesc32"
69 # endif
70 # elif defined(_MSC_VER)
71 # define COMPILER_NAME "msc"
72 # elif defined(__MINGW32__)
73 # define COMPILER_NAME "mingw32"
74 # elif defined(_WIN32)
75 # define COMPILER_NAME "win32"
76 # elif defined(__GNUC__)
77 # define COMPILER_NAME "gcc-" __VERSION__
78 # else
79 # define COMPILER_NAME "unknown"
80 # endif
81 #endif
82
83 #ifndef _RC_COMPILE_
84
85 #include "sqlite3.h"
86
87 /*
88 ** Typedef for a 64-bit integer
89 */
@@ -124,5 +155,7 @@
155 #endif
156 #ifndef CODESET
157 # undef FOSSIL_I18N
158 # define FOSSIL_I18N 0
159 #endif
160
161 #endif /* _RC_COMPILE_ */
162
+33
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
2525
#ifndef _FILE_OFFSET_BITS
2626
# define _FILE_OFFSET_BITS 64
2727
#endif
2828
#define _LARGEFILE_SOURCE 1
2929
30
+#ifndef _RC_COMPILE_
3031
3132
/*
3233
** System header files used by all modules
3334
*/
3435
#include <unistd.h>
@@ -36,10 +37,13 @@
3637
#include <stdlib.h>
3738
#include <ctype.h>
3839
#include <string.h>
3940
#include <stdarg.h>
4041
#include <assert.h>
42
+
43
+#endif
44
+
4145
#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
4246
# if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
4347
typedef int socklen_t;
4448
# endif
4549
# ifndef _WIN32
@@ -49,10 +53,37 @@
4953
# include <sys/types.h>
5054
# include <signal.h>
5155
# include <pwd.h>
5256
#endif
5357
58
+/*
59
+** Define the compiler variant, used to compile the project
60
+*/
61
+#if !defined(COMPILER_NAME)
62
+# if defined(__DMC__)
63
+# define COMPILER_NAME "dmc"
64
+# elif defined(__POCC__)
65
+# if defined(_M_X64)
66
+# define COMPILER_NAME "pellesc64"
67
+# else
68
+# define COMPILER_NAME "pellesc32"
69
+# endif
70
+# elif defined(_MSC_VER)
71
+# define COMPILER_NAME "msc"
72
+# elif defined(__MINGW32__)
73
+# define COMPILER_NAME "mingw32"
74
+# elif defined(_WIN32)
75
+# define COMPILER_NAME "win32"
76
+# elif defined(__GNUC__)
77
+# define COMPILER_NAME "gcc-" __VERSION__
78
+# else
79
+# define COMPILER_NAME "unknown"
80
+# endif
81
+#endif
82
+
83
+#ifndef _RC_COMPILE_
84
+
5485
#include "sqlite3.h"
5586
5687
/*
5788
** Typedef for a 64-bit integer
5889
*/
@@ -124,5 +155,7 @@
124155
#endif
125156
#ifndef CODESET
126157
# undef FOSSIL_I18N
127158
# define FOSSIL_I18N 0
128159
#endif
160
+
161
+#endif /* _RC_COMPILE_ */
129162
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
25 #ifndef _FILE_OFFSET_BITS
26 # define _FILE_OFFSET_BITS 64
27 #endif
28 #define _LARGEFILE_SOURCE 1
29
 
30
31 /*
32 ** System header files used by all modules
33 */
34 #include <unistd.h>
@@ -36,10 +37,13 @@
36 #include <stdlib.h>
37 #include <ctype.h>
38 #include <string.h>
39 #include <stdarg.h>
40 #include <assert.h>
 
 
 
41 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
42 # if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
43 typedef int socklen_t;
44 # endif
45 # ifndef _WIN32
@@ -49,10 +53,37 @@
49 # include <sys/types.h>
50 # include <signal.h>
51 # include <pwd.h>
52 #endif
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54 #include "sqlite3.h"
55
56 /*
57 ** Typedef for a 64-bit integer
58 */
@@ -124,5 +155,7 @@
124 #endif
125 #ifndef CODESET
126 # undef FOSSIL_I18N
127 # define FOSSIL_I18N 0
128 #endif
 
 
129
--- src/config.h
+++ src/config.h
@@ -25,10 +25,11 @@
25 #ifndef _FILE_OFFSET_BITS
26 # define _FILE_OFFSET_BITS 64
27 #endif
28 #define _LARGEFILE_SOURCE 1
29
30 #ifndef _RC_COMPILE_
31
32 /*
33 ** System header files used by all modules
34 */
35 #include <unistd.h>
@@ -36,10 +37,13 @@
37 #include <stdlib.h>
38 #include <ctype.h>
39 #include <string.h>
40 #include <stdarg.h>
41 #include <assert.h>
42
43 #endif
44
45 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
46 # if defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
47 typedef int socklen_t;
48 # endif
49 # ifndef _WIN32
@@ -49,10 +53,37 @@
53 # include <sys/types.h>
54 # include <signal.h>
55 # include <pwd.h>
56 #endif
57
58 /*
59 ** Define the compiler variant, used to compile the project
60 */
61 #if !defined(COMPILER_NAME)
62 # if defined(__DMC__)
63 # define COMPILER_NAME "dmc"
64 # elif defined(__POCC__)
65 # if defined(_M_X64)
66 # define COMPILER_NAME "pellesc64"
67 # else
68 # define COMPILER_NAME "pellesc32"
69 # endif
70 # elif defined(_MSC_VER)
71 # define COMPILER_NAME "msc"
72 # elif defined(__MINGW32__)
73 # define COMPILER_NAME "mingw32"
74 # elif defined(_WIN32)
75 # define COMPILER_NAME "win32"
76 # elif defined(__GNUC__)
77 # define COMPILER_NAME "gcc-" __VERSION__
78 # else
79 # define COMPILER_NAME "unknown"
80 # endif
81 #endif
82
83 #ifndef _RC_COMPILE_
84
85 #include "sqlite3.h"
86
87 /*
88 ** Typedef for a 64-bit integer
89 */
@@ -124,5 +155,7 @@
155 #endif
156 #ifndef CODESET
157 # undef FOSSIL_I18N
158 # define FOSSIL_I18N 0
159 #endif
160
161 #endif /* _RC_COMPILE_ */
162
+52
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591591
z++;
592592
}
593593
}
594594
putchar('\n');
595595
}
596
+
597
+/*
598
+** WEBPAGE: help
599
+** URL: /help?cmd=CMD
600
+*/
601
+void help_page(void){
602
+ const char * zCmd = P("cmd");
603
+
604
+ style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
605
+ if( zCmd ){
606
+ int rc, idx;
607
+ char *z, *s, *d;
608
+
609
+ @ <h1>%s(zCmd)</h1>
610
+ rc = name_search(zCmd, aCommand, count(aCommand), &idx);
611
+ if( rc==1 ){
612
+ @ unknown command: %s(zCmd)
613
+ }else if( rc==2 ){
614
+ @ ambiguous command prefix: %s(zCmd)
615
+ }else{
616
+ z = (char*)aCmdHelp[idx];
617
+ if( z==0 ){
618
+ @ no help available for the %s(aCommand[idx].zName) command
619
+ }else{
620
+ z=s=d=mprintf("%s",z);
621
+ while( *s ){
622
+ if( *s=='%' && strncmp(s, "%fossil", 7)==0 ){
623
+ s++;
624
+ }else{
625
+ *d++ = *s++;
626
+ }
627
+ }
628
+ *d = 0;
629
+ @ <pre>%s(z)</pre>
630
+ free(z);
631
+ }
632
+ }
633
+ @ <hr/><a href="help">available commands</a> in fossil
634
+ @ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
635
+ }else{
636
+ int i;
637
+
638
+ @ <h1>Available commands</h1>
639
+ for(i=0; i<count(aCommand); i++){
640
+ if( strncmp(aCommand[i].zName,"test",4)==0 ) continue;
641
+ @ <kbd><a href="help?cmd=%s(aCommand[i].zName)">
642
+ @ %s(aCommand[i].zName)</a></kbd>
643
+ }
644
+ @ <hr/>fossil version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
645
+ }
646
+ style_footer();
647
+}
596648
597649
/*
598650
** Set the g.zBaseURL value to the full URL for the toplevel of
599651
** the fossil tree. Set g.zTop to g.zBaseURL without the
600652
** leading "http://" and the host and port.
601653
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591 z++;
592 }
593 }
594 putchar('\n');
595 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
597 /*
598 ** Set the g.zBaseURL value to the full URL for the toplevel of
599 ** the fossil tree. Set g.zTop to g.zBaseURL without the
600 ** leading "http://" and the host and port.
601
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591 z++;
592 }
593 }
594 putchar('\n');
595 }
596
597 /*
598 ** WEBPAGE: help
599 ** URL: /help?cmd=CMD
600 */
601 void help_page(void){
602 const char * zCmd = P("cmd");
603
604 style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
605 if( zCmd ){
606 int rc, idx;
607 char *z, *s, *d;
608
609 @ <h1>%s(zCmd)</h1>
610 rc = name_search(zCmd, aCommand, count(aCommand), &idx);
611 if( rc==1 ){
612 @ unknown command: %s(zCmd)
613 }else if( rc==2 ){
614 @ ambiguous command prefix: %s(zCmd)
615 }else{
616 z = (char*)aCmdHelp[idx];
617 if( z==0 ){
618 @ no help available for the %s(aCommand[idx].zName) command
619 }else{
620 z=s=d=mprintf("%s",z);
621 while( *s ){
622 if( *s=='%' && strncmp(s, "%fossil", 7)==0 ){
623 s++;
624 }else{
625 *d++ = *s++;
626 }
627 }
628 *d = 0;
629 @ <pre>%s(z)</pre>
630 free(z);
631 }
632 }
633 @ <hr/><a href="help">available commands</a> in fossil
634 @ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
635 }else{
636 int i;
637
638 @ <h1>Available commands</h1>
639 for(i=0; i<count(aCommand); i++){
640 if( strncmp(aCommand[i].zName,"test",4)==0 ) continue;
641 @ <kbd><a href="help?cmd=%s(aCommand[i].zName)">
642 @ %s(aCommand[i].zName)</a></kbd>
643 }
644 @ <hr/>fossil version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
645 }
646 style_footer();
647 }
648
649 /*
650 ** Set the g.zBaseURL value to the full URL for the toplevel of
651 ** the fossil tree. Set g.zTop to g.zBaseURL without the
652 ** leading "http://" and the host and port.
653
+52
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591591
z++;
592592
}
593593
}
594594
putchar('\n');
595595
}
596
+
597
+/*
598
+** WEBPAGE: help
599
+** URL: /help?cmd=CMD
600
+*/
601
+void help_page(void){
602
+ const char * zCmd = P("cmd");
603
+
604
+ style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
605
+ if( zCmd ){
606
+ int rc, idx;
607
+ char *z, *s, *d;
608
+
609
+ @ <h1>%s(zCmd)</h1>
610
+ rc = name_search(zCmd, aCommand, count(aCommand), &idx);
611
+ if( rc==1 ){
612
+ @ unknown command: %s(zCmd)
613
+ }else if( rc==2 ){
614
+ @ ambiguous command prefix: %s(zCmd)
615
+ }else{
616
+ z = (char*)aCmdHelp[idx];
617
+ if( z==0 ){
618
+ @ no help available for the %s(aCommand[idx].zName) command
619
+ }else{
620
+ z=s=d=mprintf("%s",z);
621
+ while( *s ){
622
+ if( *s=='%' && strncmp(s, "%fossil", 7)==0 ){
623
+ s++;
624
+ }else{
625
+ *d++ = *s++;
626
+ }
627
+ }
628
+ *d = 0;
629
+ @ <pre>%s(z)</pre>
630
+ free(z);
631
+ }
632
+ }
633
+ @ <hr/><a href="help">available commands</a> in fossil
634
+ @ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
635
+ }else{
636
+ int i;
637
+
638
+ @ <h1>Available commands</h1>
639
+ for(i=0; i<count(aCommand); i++){
640
+ if( strncmp(aCommand[i].zName,"test",4)==0 ) continue;
641
+ @ <kbd><a href="help?cmd=%s(aCommand[i].zName)">
642
+ @ %s(aCommand[i].zName)</a></kbd>
643
+ }
644
+ @ <hr/>fossil version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
645
+ }
646
+ style_footer();
647
+}
596648
597649
/*
598650
** Set the g.zBaseURL value to the full URL for the toplevel of
599651
** the fossil tree. Set g.zTop to g.zBaseURL without the
600652
** leading "http://" and the host and port.
601653
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591 z++;
592 }
593 }
594 putchar('\n');
595 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
597 /*
598 ** Set the g.zBaseURL value to the full URL for the toplevel of
599 ** the fossil tree. Set g.zTop to g.zBaseURL without the
600 ** leading "http://" and the host and port.
601
--- src/main.c
+++ src/main.c
@@ -591,10 +591,62 @@
591 z++;
592 }
593 }
594 putchar('\n');
595 }
596
597 /*
598 ** WEBPAGE: help
599 ** URL: /help?cmd=CMD
600 */
601 void help_page(void){
602 const char * zCmd = P("cmd");
603
604 style_header("Command line help %s%s",zCmd?" - ":"",zCmd?zCmd:"");
605 if( zCmd ){
606 int rc, idx;
607 char *z, *s, *d;
608
609 @ <h1>%s(zCmd)</h1>
610 rc = name_search(zCmd, aCommand, count(aCommand), &idx);
611 if( rc==1 ){
612 @ unknown command: %s(zCmd)
613 }else if( rc==2 ){
614 @ ambiguous command prefix: %s(zCmd)
615 }else{
616 z = (char*)aCmdHelp[idx];
617 if( z==0 ){
618 @ no help available for the %s(aCommand[idx].zName) command
619 }else{
620 z=s=d=mprintf("%s",z);
621 while( *s ){
622 if( *s=='%' && strncmp(s, "%fossil", 7)==0 ){
623 s++;
624 }else{
625 *d++ = *s++;
626 }
627 }
628 *d = 0;
629 @ <pre>%s(z)</pre>
630 free(z);
631 }
632 }
633 @ <hr/><a href="help">available commands</a> in fossil
634 @ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
635 }else{
636 int i;
637
638 @ <h1>Available commands</h1>
639 for(i=0; i<count(aCommand); i++){
640 if( strncmp(aCommand[i].zName,"test",4)==0 ) continue;
641 @ <kbd><a href="help?cmd=%s(aCommand[i].zName)">
642 @ %s(aCommand[i].zName)</a></kbd>
643 }
644 @ <hr/>fossil version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
645 }
646 style_footer();
647 }
648
649 /*
650 ** Set the g.zBaseURL value to the full URL for the toplevel of
651 ** the fossil tree. Set g.zTop to g.zBaseURL without the
652 ** leading "http://" and the host and port.
653
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -13,11 +13,11 @@
1313
#include <stdlib.h>
1414
#include <ctype.h>
1515
#include <memory.h>
1616
#include <sys/stat.h>
1717
#include <assert.h>
18
-#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER)
18
+#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
1919
# ifndef WIN32
2020
# define WIN32
2121
# endif
2222
# include <string.h>
2323
#else
2424
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -13,11 +13,11 @@
13 #include <stdlib.h>
14 #include <ctype.h>
15 #include <memory.h>
16 #include <sys/stat.h>
17 #include <assert.h>
18 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER)
19 # ifndef WIN32
20 # define WIN32
21 # endif
22 # include <string.h>
23 #else
24
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -13,11 +13,11 @@
13 #include <stdlib.h>
14 #include <ctype.h>
15 #include <memory.h>
16 #include <sys/stat.h>
17 #include <assert.h>
18 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
19 # ifndef WIN32
20 # define WIN32
21 # endif
22 # include <string.h>
23 #else
24
+2 -2
--- src/report.c
+++ src/report.c
@@ -723,11 +723,11 @@
723723
724724
/* Output the data for this entry from the database
725725
*/
726726
zBg = pState->iBg>=0 ? azArg[pState->iBg] : 0;
727727
if( zBg==0 ) zBg = "white";
728
- @ <tr bgcolor="%h(zBg)">
728
+ @ <tr style="background-color:%h(zBg)">
729729
zTid = 0;
730730
zPage[0] = 0;
731731
for(i=0; i<nArg; i++){
732732
char *zData;
733733
if( i==pState->iBg ) continue;
@@ -738,11 +738,11 @@
738738
@ <td valign="top"><a href="tktedit/%h(zTid)">edit</a></td>
739739
zTid = 0;
740740
}
741741
if( zData[0] ){
742742
Blob content;
743
- @ </tr><tr bgcolor="%h(zBg)"><td colspan=%d(pState->nCol)>
743
+ @ </tr><tr style="background-color:%h(zBg)"><td colspan=%d(pState->nCol)>
744744
blob_init(&content, zData, -1);
745745
wiki_convert(&content, 0, 0);
746746
blob_reset(&content);
747747
}
748748
}else if( azName[i][0]=='#' ){
749749
--- src/report.c
+++ src/report.c
@@ -723,11 +723,11 @@
723
724 /* Output the data for this entry from the database
725 */
726 zBg = pState->iBg>=0 ? azArg[pState->iBg] : 0;
727 if( zBg==0 ) zBg = "white";
728 @ <tr bgcolor="%h(zBg)">
729 zTid = 0;
730 zPage[0] = 0;
731 for(i=0; i<nArg; i++){
732 char *zData;
733 if( i==pState->iBg ) continue;
@@ -738,11 +738,11 @@
738 @ <td valign="top"><a href="tktedit/%h(zTid)">edit</a></td>
739 zTid = 0;
740 }
741 if( zData[0] ){
742 Blob content;
743 @ </tr><tr bgcolor="%h(zBg)"><td colspan=%d(pState->nCol)>
744 blob_init(&content, zData, -1);
745 wiki_convert(&content, 0, 0);
746 blob_reset(&content);
747 }
748 }else if( azName[i][0]=='#' ){
749
--- src/report.c
+++ src/report.c
@@ -723,11 +723,11 @@
723
724 /* Output the data for this entry from the database
725 */
726 zBg = pState->iBg>=0 ? azArg[pState->iBg] : 0;
727 if( zBg==0 ) zBg = "white";
728 @ <tr style="background-color:%h(zBg)">
729 zTid = 0;
730 zPage[0] = 0;
731 for(i=0; i<nArg; i++){
732 char *zData;
733 if( i==pState->iBg ) continue;
@@ -738,11 +738,11 @@
738 @ <td valign="top"><a href="tktedit/%h(zTid)">edit</a></td>
739 zTid = 0;
740 }
741 if( zData[0] ){
742 Blob content;
743 @ </tr><tr style="background-color:%h(zBg)"><td colspan=%d(pState->nCol)>
744 blob_init(&content, zData, -1);
745 wiki_convert(&content, 0, 0);
746 blob_reset(&content);
747 }
748 }else if( azName[i][0]=='#' ){
749
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -103,11 +103,11 @@
103103
@ <tr><th>Server&nbsp;ID:</th><td>
104104
@ %h(db_get("server-code",""))
105105
@ </td></tr>
106106
107107
@ <tr><th>Fossil&nbsp;Version:</th><td>
108
- @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
108
+ @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION) (%h(COMPILER_NAME))
109109
@ </td></tr>
110110
@ <tr><th>SQLite&nbsp;Version:</th><td>
111111
sqlite3_snprintf(sizeof(zBuf), zBuf, "%.19s [%.10s] (%s)",
112112
SQLITE_SOURCE_ID, &SQLITE_SOURCE_ID[20], SQLITE_VERSION);
113113
@ %s(zBuf)
114114
--- src/stat.c
+++ src/stat.c
@@ -103,11 +103,11 @@
103 @ <tr><th>Server&nbsp;ID:</th><td>
104 @ %h(db_get("server-code",""))
105 @ </td></tr>
106
107 @ <tr><th>Fossil&nbsp;Version:</th><td>
108 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
109 @ </td></tr>
110 @ <tr><th>SQLite&nbsp;Version:</th><td>
111 sqlite3_snprintf(sizeof(zBuf), zBuf, "%.19s [%.10s] (%s)",
112 SQLITE_SOURCE_ID, &SQLITE_SOURCE_ID[20], SQLITE_VERSION);
113 @ %s(zBuf)
114
--- src/stat.c
+++ src/stat.c
@@ -103,11 +103,11 @@
103 @ <tr><th>Server&nbsp;ID:</th><td>
104 @ %h(db_get("server-code",""))
105 @ </td></tr>
106
107 @ <tr><th>Fossil&nbsp;Version:</th><td>
108 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION) (%h(COMPILER_NAME))
109 @ </td></tr>
110 @ <tr><th>SQLite&nbsp;Version:</th><td>
111 sqlite3_snprintf(sizeof(zBuf), zBuf, "%.19s [%.10s] (%s)",
112 SQLITE_SOURCE_ID, &SQLITE_SOURCE_ID[20], SQLITE_VERSION);
113 @ %s(zBuf)
114
--- src/style.c
+++ src/style.c
@@ -101,10 +101,11 @@
101101
Th_Store("baseurl", g.zBaseURL);
102102
Th_Store("index_page", db_get("index-page","/home"));
103103
Th_Store("current_page", g.zPath);
104104
Th_Store("manifest_version", MANIFEST_VERSION);
105105
Th_Store("manifest_date", MANIFEST_DATE);
106
+ Th_Store("compiler_name", COMPILER_NAME);
106107
if( g.zLogin ){
107108
Th_Store("login", g.zLogin);
108109
}
109110
if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1);
110111
Th_Render(zHeader);
111112
--- src/style.c
+++ src/style.c
@@ -101,10 +101,11 @@
101 Th_Store("baseurl", g.zBaseURL);
102 Th_Store("index_page", db_get("index-page","/home"));
103 Th_Store("current_page", g.zPath);
104 Th_Store("manifest_version", MANIFEST_VERSION);
105 Th_Store("manifest_date", MANIFEST_DATE);
 
106 if( g.zLogin ){
107 Th_Store("login", g.zLogin);
108 }
109 if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1);
110 Th_Render(zHeader);
111
--- src/style.c
+++ src/style.c
@@ -101,10 +101,11 @@
101 Th_Store("baseurl", g.zBaseURL);
102 Th_Store("index_page", db_get("index-page","/home"));
103 Th_Store("current_page", g.zPath);
104 Th_Store("manifest_version", MANIFEST_VERSION);
105 Th_Store("manifest_date", MANIFEST_DATE);
106 Th_Store("compiler_name", COMPILER_NAME);
107 if( g.zLogin ){
108 Th_Store("login", g.zLogin);
109 }
110 if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1);
111 Th_Render(zHeader);
112
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -44,73 +44,111 @@
4444
TARGETMACHINE_CC=x86
4545
TARGETMACHINE_LN=ix86
4646
TARGETEXTEND=
4747
endif
4848
49
+# define the project directories
4950
B=..
5051
SRCDIR=$(B)/src/
5152
WINDIR=$(B)/win/
52
-ZLIBSRCDIR=E:/fossil-w32/zlib/
53
+ZLIBSRCDIR=../../zlib/
5354
55
+# define linker command and options
5456
LINK=$(PellesCDir)/bin/polink.exe
5557
LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib
5658
59
+# define standard C-compiler and flags, used to compile
60
+# the fossil binary. Some special definitions follow for
61
+# special files follow
5762
CC=$(PellesCDir)\bin\pocc.exe
5863
DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp
5964
CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES)
6065
INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR)
6166
67
+# define commands for building the windows resource files
68
+RESOURCE=fossil.res
69
+RC=$(PellesCDir)\bin\porc.exe
70
+RCFLAGS=$(INCLUDE) -D__POCC__=1 -D_M_X$(TARGETVERSION)
71
+
72
+# define the special utilities files, needed to generate
73
+# the automatically generated source files
6274
UTILS=translate.exe mkindex.exe makeheaders.exe
6375
UTILS_OBJ=$(UTILS:.exe=.obj)
76
+UTILS_SRC=$(foreach uf,$(UTILS),$(SRCDIR)$(uf:.exe=.c))
6477
65
-SRC=add.c allrepo.c attach.c bag.c blob.c branch.c browse.c captcha.c cgi.c checkin.c checkout.c clearsign.c clone.c comformat.c configure.c content.c db.c delta.c deltacmd.c descendants.c diff.c diffcmd.c doc.c encode.c event.c file.c finfo.c graph.c http.c http_socket.c http_ssl.c http_transport.c info.c login.c main.c manifest.c md5.c merge.c merge3.c name.c pivot.c popen.c pqueue.c printf.c rebuild.c report.c rss.c schema.c search.c setup.c sha1.c shun.c skins.c stat.c style.c sync.c tag.c th_main.c timeline.c tkt.c tktsetup.c undo.c update.c url.c user.c verify.c vfile.c wiki.c wikiformat.c winhttp.c xfer.c zip.c
66
-ORIGSRC=$(foreach sf,$(SRC),$(SRCDIR)$(sf))
67
-TRANSLATEDSRC=$(SRC:.c=_.c)
68
-TRANSLATEDOBJ=$(TRANSLATEDSRC:.c=.obj)
69
-
78
+# define the sqlite files, which need special flags on compile
7079
SQLITESRC=sqlite3.c
7180
ORIGSQLITESRC=$(foreach sf,$(SQLITESRC),$(SRCDIR)$(sf))
7281
SQLITEOBJ=$(foreach sf,$(SQLITESRC),$(sf:.c=.obj))
7382
SQLITEDEFINES=-DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
7483
84
+# define the th scripting files, which need special flags on compile
7585
THSRC=th.c th_lang.c
7686
ORIGTHSRC=$(foreach sf,$(THSRC),$(SRCDIR)$(sf))
7787
THOBJ=$(foreach sf,$(THSRC),$(sf:.c=.obj))
7888
89
+# define the zlib files, needed by this compile
7990
ZLIBSRC=adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c
8091
ORIGZLIBSRC=$(foreach sf,$(ZLIBSRC),$(ZLIBSRCDIR)$(sf))
8192
ZLIBOBJ=$(foreach sf,$(ZLIBSRC),$(sf:.c=.obj))
8293
94
+# define all fossil sources, using the standard compile and
95
+# source generation. These are all files in SRCDIR, which are not
96
+# mentioned as special files above:
97
+ORIGSRC=$(filter-out $(UTILS_SRC) $(ORIGTHSRC) $(ORIGSQLITESRC),$(wildcard $(SRCDIR)*.c))
98
+SRC=$(subst $(SRCDIR),,$(ORIGSRC))
99
+TRANSLATEDSRC=$(SRC:.c=_.c)
100
+TRANSLATEDOBJ=$(TRANSLATEDSRC:.c=.obj)
101
+
102
+# main target file is the application
83103
APPLICATION=fossil.exe
84104
105
+# ###########################################################################
106
+# define the standard make target
85107
.PHONY: default
86108
default: page_index.h headers $(APPLICATION)
87109
88
-$(UTILS): %.exe: %.obj
110
+# ###########################################################################
111
+# symbolic target to generate the source generate utils
112
+.PHONY: utils
113
+utils: $(UTILS)
114
+
115
+# link utils
116
+$(UTILS) version.exe: %.exe: %.obj
89117
$(LINK) $(LINKFLAGS) -out:"$@" $<
90118
119
+# compiling standard fossil utils
91120
$(UTILS_OBJ): %.obj: $(SRCDIR)%.c
92121
$(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
93122
94
-$(TRANSLATEDSRC): %_.c: $(SRCDIR)%.c translate.exe
95
- translate.exe $< >$@
96
-
97
-page_index.h: $(TRANSLATEDSRC) mkindex.exe
98
- mkindex.exe $(TRANSLATEDSRC) >$@
99
-
100
-version.exe: version.obj
101
- $(LINK) $(LINKFLAGS) -out:"$@" $<
102
-
123
+# compile special windows utils
103124
version.obj: $(WINDIR)version.c
104125
$(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
105126
127
+# ###########################################################################
128
+# generate the translated c-source files
129
+$(TRANSLATEDSRC): %_.c: $(SRCDIR)%.c translate.exe
130
+ translate.exe $< >$@
131
+
132
+# ###########################################################################
133
+# generate the index source, containing all web references,..
134
+page_index.h: $(TRANSLATEDSRC) mkindex.exe
135
+ mkindex.exe $(TRANSLATEDSRC) >$@
136
+
137
+# ###########################################################################
138
+# extracting version info from manifest
106139
VERSION.h: version.exe ..\manifest.uuid ..\manifest
107140
version.exe ..\manifest.uuid ..\manifest > $@
108141
142
+# ###########################################################################
143
+# generate the simplified headers
109144
headers: makeheaders.exe page_index.h VERSION.h ../src/sqlite3.h ../src/th.h VERSION.h
110145
makeheaders.exe $(foreach ts,$(TRANSLATEDSRC),$(ts):$(ts:_.c=.h)) ../src/sqlite3.h ../src/th.h VERSION.h
111146
echo Done >$@
147
+
148
+# ###########################################################################
149
+# compile C sources with relevant options
112150
113151
$(TRANSLATEDOBJ): %_.obj: %_.c %.h
114152
$(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
115153
116154
$(SQLITEOBJ): %.obj: $(SRCDIR)%.c $(SRCDIR)%.h
@@ -120,18 +158,29 @@
120158
$(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
121159
122160
$(ZLIBOBJ): %.obj: $(ZLIBSRCDIR)%.c
123161
$(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
124162
125
-$(APPLICATION): $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) headers
126
- $(LINK) $(LINKFLAGS) -out:"$@" $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ)
163
+# ###########################################################################
164
+# create the windows resource with icon and version info
165
+$(RESOURCE): %.res: ../win/%.rc ../win/*.ico
166
+ $(RC) $(RCFLAGS) $< -Fo"$@"
167
+
168
+# ###########################################################################
169
+# link the application
170
+$(APPLICATION): $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) headers $(RESOURCE)
171
+ $(LINK) $(LINKFLAGS) -out:"$@" $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) $(RESOURCE)
172
+
173
+# ###########################################################################
174
+# cleanup
127175
128176
.PHONY: clean
129177
clean:
130
- del /F *.obj
131
- del /F *.c
178
+ del /F $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) $(UTILS_OBJ) version.obj
179
+ del /F $(TRANSLATEDSRC)
132180
del /F *.h headers
181
+ del /F $(RESOURCE)
133182
134183
.PHONY: clobber
135184
clobber: clean
136185
del /F *.exe
137186
138187
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -44,73 +44,111 @@
44 TARGETMACHINE_CC=x86
45 TARGETMACHINE_LN=ix86
46 TARGETEXTEND=
47 endif
48
 
49 B=..
50 SRCDIR=$(B)/src/
51 WINDIR=$(B)/win/
52 ZLIBSRCDIR=E:/fossil-w32/zlib/
53
 
54 LINK=$(PellesCDir)/bin/polink.exe
55 LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib
56
 
 
 
57 CC=$(PellesCDir)\bin\pocc.exe
58 DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp
59 CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES)
60 INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR)
61
 
 
 
 
 
 
 
62 UTILS=translate.exe mkindex.exe makeheaders.exe
63 UTILS_OBJ=$(UTILS:.exe=.obj)
 
64
65 SRC=add.c allrepo.c attach.c bag.c blob.c branch.c browse.c captcha.c cgi.c checkin.c checkout.c clearsign.c clone.c comformat.c configure.c content.c db.c delta.c deltacmd.c descendants.c diff.c diffcmd.c doc.c encode.c event.c file.c finfo.c graph.c http.c http_socket.c http_ssl.c http_transport.c info.c login.c main.c manifest.c md5.c merge.c merge3.c name.c pivot.c popen.c pqueue.c printf.c rebuild.c report.c rss.c schema.c search.c setup.c sha1.c shun.c skins.c stat.c style.c sync.c tag.c th_main.c timeline.c tkt.c tktsetup.c undo.c update.c url.c user.c verify.c vfile.c wiki.c wikiformat.c winhttp.c xfer.c zip.c
66 ORIGSRC=$(foreach sf,$(SRC),$(SRCDIR)$(sf))
67 TRANSLATEDSRC=$(SRC:.c=_.c)
68 TRANSLATEDOBJ=$(TRANSLATEDSRC:.c=.obj)
69
70 SQLITESRC=sqlite3.c
71 ORIGSQLITESRC=$(foreach sf,$(SQLITESRC),$(SRCDIR)$(sf))
72 SQLITEOBJ=$(foreach sf,$(SQLITESRC),$(sf:.c=.obj))
73 SQLITEDEFINES=-DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
74
 
75 THSRC=th.c th_lang.c
76 ORIGTHSRC=$(foreach sf,$(THSRC),$(SRCDIR)$(sf))
77 THOBJ=$(foreach sf,$(THSRC),$(sf:.c=.obj))
78
 
79 ZLIBSRC=adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c
80 ORIGZLIBSRC=$(foreach sf,$(ZLIBSRC),$(ZLIBSRCDIR)$(sf))
81 ZLIBOBJ=$(foreach sf,$(ZLIBSRC),$(sf:.c=.obj))
82
 
 
 
 
 
 
 
 
 
83 APPLICATION=fossil.exe
84
 
 
85 .PHONY: default
86 default: page_index.h headers $(APPLICATION)
87
88 $(UTILS): %.exe: %.obj
 
 
 
 
 
 
89 $(LINK) $(LINKFLAGS) -out:"$@" $<
90
 
91 $(UTILS_OBJ): %.obj: $(SRCDIR)%.c
92 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
93
94 $(TRANSLATEDSRC): %_.c: $(SRCDIR)%.c translate.exe
95 translate.exe $< >$@
96
97 page_index.h: $(TRANSLATEDSRC) mkindex.exe
98 mkindex.exe $(TRANSLATEDSRC) >$@
99
100 version.exe: version.obj
101 $(LINK) $(LINKFLAGS) -out:"$@" $<
102
103 version.obj: $(WINDIR)version.c
104 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
105
 
 
 
 
 
 
 
 
 
 
 
 
106 VERSION.h: version.exe ..\manifest.uuid ..\manifest
107 version.exe ..\manifest.uuid ..\manifest > $@
108
 
 
109 headers: makeheaders.exe page_index.h VERSION.h ../src/sqlite3.h ../src/th.h VERSION.h
110 makeheaders.exe $(foreach ts,$(TRANSLATEDSRC),$(ts):$(ts:_.c=.h)) ../src/sqlite3.h ../src/th.h VERSION.h
111 echo Done >$@
 
 
 
112
113 $(TRANSLATEDOBJ): %_.obj: %_.c %.h
114 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
115
116 $(SQLITEOBJ): %.obj: $(SRCDIR)%.c $(SRCDIR)%.h
@@ -120,18 +158,29 @@
120 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
121
122 $(ZLIBOBJ): %.obj: $(ZLIBSRCDIR)%.c
123 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
124
125 $(APPLICATION): $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) headers
126 $(LINK) $(LINKFLAGS) -out:"$@" $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ)
 
 
 
 
 
 
 
 
 
 
127
128 .PHONY: clean
129 clean:
130 del /F *.obj
131 del /F *.c
132 del /F *.h headers
 
133
134 .PHONY: clobber
135 clobber: clean
136 del /F *.exe
137
138
--- win/Makefile.PellesCGMake
+++ win/Makefile.PellesCGMake
@@ -44,73 +44,111 @@
44 TARGETMACHINE_CC=x86
45 TARGETMACHINE_LN=ix86
46 TARGETEXTEND=
47 endif
48
49 # define the project directories
50 B=..
51 SRCDIR=$(B)/src/
52 WINDIR=$(B)/win/
53 ZLIBSRCDIR=../../zlib/
54
55 # define linker command and options
56 LINK=$(PellesCDir)/bin/polink.exe
57 LINKFLAGS=-subsystem:console -machine:$(TARGETMACHINE_LN) /LIBPATH:$(PellesCDir)\lib\win$(TARGETEXTEND) /LIBPATH:$(PellesCDir)\lib kernel32.lib advapi32.lib delayimp$(TARGETEXTEND).lib Wsock32.lib Crtmt$(TARGETEXTEND).lib
58
59 # define standard C-compiler and flags, used to compile
60 # the fossil binary. Some special definitions follow for
61 # special files follow
62 CC=$(PellesCDir)\bin\pocc.exe
63 DEFINES=-DFOSSIL_I18N=0 -Dstrncasecmp=memicmp -Dstrcasecmp=stricmp
64 CCFLAGS=-T$(TARGETMACHINE_CC)-coff -Ot -W2 -Gd -Go -Ze -MT $(DEFINES)
65 INCLUDE=/I $(PellesCDir)\Include\Win /I $(PellesCDir)\Include /I $(ZLIBSRCDIR) /I $(SRCDIR)
66
67 # define commands for building the windows resource files
68 RESOURCE=fossil.res
69 RC=$(PellesCDir)\bin\porc.exe
70 RCFLAGS=$(INCLUDE) -D__POCC__=1 -D_M_X$(TARGETVERSION)
71
72 # define the special utilities files, needed to generate
73 # the automatically generated source files
74 UTILS=translate.exe mkindex.exe makeheaders.exe
75 UTILS_OBJ=$(UTILS:.exe=.obj)
76 UTILS_SRC=$(foreach uf,$(UTILS),$(SRCDIR)$(uf:.exe=.c))
77
78 # define the sqlite files, which need special flags on compile
 
 
 
 
79 SQLITESRC=sqlite3.c
80 ORIGSQLITESRC=$(foreach sf,$(SQLITESRC),$(SRCDIR)$(sf))
81 SQLITEOBJ=$(foreach sf,$(SQLITESRC),$(sf:.c=.obj))
82 SQLITEDEFINES=-DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0
83
84 # define the th scripting files, which need special flags on compile
85 THSRC=th.c th_lang.c
86 ORIGTHSRC=$(foreach sf,$(THSRC),$(SRCDIR)$(sf))
87 THOBJ=$(foreach sf,$(THSRC),$(sf:.c=.obj))
88
89 # define the zlib files, needed by this compile
90 ZLIBSRC=adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c
91 ORIGZLIBSRC=$(foreach sf,$(ZLIBSRC),$(ZLIBSRCDIR)$(sf))
92 ZLIBOBJ=$(foreach sf,$(ZLIBSRC),$(sf:.c=.obj))
93
94 # define all fossil sources, using the standard compile and
95 # source generation. These are all files in SRCDIR, which are not
96 # mentioned as special files above:
97 ORIGSRC=$(filter-out $(UTILS_SRC) $(ORIGTHSRC) $(ORIGSQLITESRC),$(wildcard $(SRCDIR)*.c))
98 SRC=$(subst $(SRCDIR),,$(ORIGSRC))
99 TRANSLATEDSRC=$(SRC:.c=_.c)
100 TRANSLATEDOBJ=$(TRANSLATEDSRC:.c=.obj)
101
102 # main target file is the application
103 APPLICATION=fossil.exe
104
105 # ###########################################################################
106 # define the standard make target
107 .PHONY: default
108 default: page_index.h headers $(APPLICATION)
109
110 # ###########################################################################
111 # symbolic target to generate the source generate utils
112 .PHONY: utils
113 utils: $(UTILS)
114
115 # link utils
116 $(UTILS) version.exe: %.exe: %.obj
117 $(LINK) $(LINKFLAGS) -out:"$@" $<
118
119 # compiling standard fossil utils
120 $(UTILS_OBJ): %.obj: $(SRCDIR)%.c
121 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
122
123 # compile special windows utils
 
 
 
 
 
 
 
 
124 version.obj: $(WINDIR)version.c
125 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
126
127 # ###########################################################################
128 # generate the translated c-source files
129 $(TRANSLATEDSRC): %_.c: $(SRCDIR)%.c translate.exe
130 translate.exe $< >$@
131
132 # ###########################################################################
133 # generate the index source, containing all web references,..
134 page_index.h: $(TRANSLATEDSRC) mkindex.exe
135 mkindex.exe $(TRANSLATEDSRC) >$@
136
137 # ###########################################################################
138 # extracting version info from manifest
139 VERSION.h: version.exe ..\manifest.uuid ..\manifest
140 version.exe ..\manifest.uuid ..\manifest > $@
141
142 # ###########################################################################
143 # generate the simplified headers
144 headers: makeheaders.exe page_index.h VERSION.h ../src/sqlite3.h ../src/th.h VERSION.h
145 makeheaders.exe $(foreach ts,$(TRANSLATEDSRC),$(ts):$(ts:_.c=.h)) ../src/sqlite3.h ../src/th.h VERSION.h
146 echo Done >$@
147
148 # ###########################################################################
149 # compile C sources with relevant options
150
151 $(TRANSLATEDOBJ): %_.obj: %_.c %.h
152 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
153
154 $(SQLITEOBJ): %.obj: $(SRCDIR)%.c $(SRCDIR)%.h
@@ -120,18 +158,29 @@
158 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
159
160 $(ZLIBOBJ): %.obj: $(ZLIBSRCDIR)%.c
161 $(CC) $(CCFLAGS) $(INCLUDE) "$<" -Fo"$@"
162
163 # ###########################################################################
164 # create the windows resource with icon and version info
165 $(RESOURCE): %.res: ../win/%.rc ../win/*.ico
166 $(RC) $(RCFLAGS) $< -Fo"$@"
167
168 # ###########################################################################
169 # link the application
170 $(APPLICATION): $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) headers $(RESOURCE)
171 $(LINK) $(LINKFLAGS) -out:"$@" $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) $(RESOURCE)
172
173 # ###########################################################################
174 # cleanup
175
176 .PHONY: clean
177 clean:
178 del /F $(TRANSLATEDOBJ) $(SQLITEOBJ) $(THOBJ) $(ZLIBOBJ) $(UTILS_OBJ) version.obj
179 del /F $(TRANSLATEDSRC)
180 del /F *.h headers
181 del /F $(RESOURCE)
182
183 .PHONY: clobber
184 clobber: clean
185 del /F *.exe
186
187
+18 -5
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -24,28 +24,35 @@
2424
CFLAGS = -o
2525
BCC = $(DMDIR)\bin\dmc $(CFLAGS)
2626
TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
2727
LIBS = $(DMDIR)\extra\lib\ zlib wsock32
2828
29
-SRC = add_.c allrepo_.c attach_.c bag_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
29
+SRC = add_.c allrepo_.c attach_.c bag_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
3030
31
-OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
31
+OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
3232
33
+RC=$(DMDIR)\bin\rcc
34
+RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
3335
3436
APPNAME = $(OBJDIR)\fossil$(E)
3537
3638
all: $(APPNAME)
3739
38
-$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
40
+$(APPNAME) : translate$E mkindex$E headers fossil.res $(OBJ) $(OBJDIR)\link
3941
cd $(OBJDIR)
4042
$(DMDIR)\bin\link @link
43
+
44
+fossil.res: $B\win\fossil.rc
45
+ $(RC) $(RCFLAGS) -o$@ $**
4146
4247
$(OBJDIR)\link: $B\win\Makefile.dmc
43
- +echo add allrepo attach bag blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode file finfo graph http http_socket http_ssl http_transport info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
48
+ +echo add allrepo attach bag blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event file finfo graph http http_socket http_ssl http_transport info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
4449
+echo fossil >> $@
4550
+echo fossil >> $@
4651
+echo $(LIBS) >> $@
52
+ +echo. >> $@
53
+ +echo fossil >> $@
4754
4855
4956
5057
translate$E: $(SRCDIR)\translate.c
5158
$(BCC) -o$@ $**
@@ -223,10 +230,16 @@
223230
$(OBJDIR)\encode$O : encode_.c encode.h
224231
$(TCC) -o$@ -c encode_.c
225232
226233
encode_.c : $(SRCDIR)\encode.c
227234
+translate$E $** > $@
235
+
236
+$(OBJDIR)\event$O : event_.c event.h
237
+ $(TCC) -o$@ -c event_.c
238
+
239
+event_.c : $(SRCDIR)\event.c
240
+ +translate$E $** > $@
228241
229242
$(OBJDIR)\file$O : file_.c file.h
230243
$(TCC) -o$@ -c file_.c
231244
232245
file_.c : $(SRCDIR)\file.c
@@ -507,7 +520,7 @@
507520
508521
zip_.c : $(SRCDIR)\zip.c
509522
+translate$E $** > $@
510523
511524
headers: makeheaders$E page_index.h VERSION.h
512
- +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
525
+ +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
513526
@copy /Y nul: headers
514527
515528
ADDED win/fossil.ico
516529
ADDED win/fossil.rc
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -24,28 +24,35 @@
24 CFLAGS = -o
25 BCC = $(DMDIR)\bin\dmc $(CFLAGS)
26 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
27 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
28
29 SRC = add_.c allrepo_.c attach_.c bag_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
30
31 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
32
 
 
33
34 APPNAME = $(OBJDIR)\fossil$(E)
35
36 all: $(APPNAME)
37
38 $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
39 cd $(OBJDIR)
40 $(DMDIR)\bin\link @link
 
 
 
41
42 $(OBJDIR)\link: $B\win\Makefile.dmc
43 +echo add allrepo attach bag blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode file finfo graph http http_socket http_ssl http_transport info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
44 +echo fossil >> $@
45 +echo fossil >> $@
46 +echo $(LIBS) >> $@
 
 
47
48
49
50 translate$E: $(SRCDIR)\translate.c
51 $(BCC) -o$@ $**
@@ -223,10 +230,16 @@
223 $(OBJDIR)\encode$O : encode_.c encode.h
224 $(TCC) -o$@ -c encode_.c
225
226 encode_.c : $(SRCDIR)\encode.c
227 +translate$E $** > $@
 
 
 
 
 
 
228
229 $(OBJDIR)\file$O : file_.c file.h
230 $(TCC) -o$@ -c file_.c
231
232 file_.c : $(SRCDIR)\file.c
@@ -507,7 +520,7 @@
507
508 zip_.c : $(SRCDIR)\zip.c
509 +translate$E $** > $@
510
511 headers: makeheaders$E page_index.h VERSION.h
512 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
513 @copy /Y nul: headers
514
515 DDED win/fossil.ico
516 DDED win/fossil.rc
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -24,28 +24,35 @@
24 CFLAGS = -o
25 BCC = $(DMDIR)\bin\dmc $(CFLAGS)
26 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
27 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
28
29 SRC = add_.c allrepo_.c attach_.c bag_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
30
31 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
32
33 RC=$(DMDIR)\bin\rcc
34 RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
35
36 APPNAME = $(OBJDIR)\fossil$(E)
37
38 all: $(APPNAME)
39
40 $(APPNAME) : translate$E mkindex$E headers fossil.res $(OBJ) $(OBJDIR)\link
41 cd $(OBJDIR)
42 $(DMDIR)\bin\link @link
43
44 fossil.res: $B\win\fossil.rc
45 $(RC) $(RCFLAGS) -o$@ $**
46
47 $(OBJDIR)\link: $B\win\Makefile.dmc
48 +echo add allrepo attach bag blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event file finfo graph http http_socket http_ssl http_transport info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
49 +echo fossil >> $@
50 +echo fossil >> $@
51 +echo $(LIBS) >> $@
52 +echo. >> $@
53 +echo fossil >> $@
54
55
56
57 translate$E: $(SRCDIR)\translate.c
58 $(BCC) -o$@ $**
@@ -223,10 +230,16 @@
230 $(OBJDIR)\encode$O : encode_.c encode.h
231 $(TCC) -o$@ -c encode_.c
232
233 encode_.c : $(SRCDIR)\encode.c
234 +translate$E $** > $@
235
236 $(OBJDIR)\event$O : event_.c event.h
237 $(TCC) -o$@ -c event_.c
238
239 event_.c : $(SRCDIR)\event.c
240 +translate$E $** > $@
241
242 $(OBJDIR)\file$O : file_.c file.h
243 $(TCC) -o$@ -c file_.c
244
245 file_.c : $(SRCDIR)\file.c
@@ -507,7 +520,7 @@
520
521 zip_.c : $(SRCDIR)\zip.c
522 +translate$E $** > $@
523
524 headers: makeheaders$E page_index.h VERSION.h
525 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
526 @copy /Y nul: headers
527
528 DDED win/fossil.ico
529 DDED win/fossil.rc

Binary file

--- a/win/fossil.rc
+++ b/win/fossil.rc
@@ -0,0 +1,29 @@
1
+#include <windows.h>
2
+
3
+#define _RC_COMPISUBLANG_ENGLISH_US
4
+
5
+VS
6
+PRODUCTVERSION 1,0,0,0
7
+
8
+FILEFLAGS 0x0
9
+
10
+
11
+FILESUBTYPE VFT2_UNKNOWN
12
+BEGIN
13
+ BLOCK "StringFileInfo"
14
+ BEGIN
15
+ Bdistributed source code control system with integrated wiki and ticket-system\0"
16
+ VALUE "Comments", "compiler: "COMPILER_NAME"\0"
17
+ VALUE "FileVersion", MANIFEST_UUID"("COMPILER_NAME"\0"
18
+
19
+(c) "MANIFES
20
+
21
+Version", MANIFEST_VERSION" "MANIFEST_DATE" UTC\0"
22
+ END
23
+ END
24
+ BLOCK "VarFileInfo"
25
+ BEGIN
26
+
27
+ END
28
+END
29
+
--- a/win/fossil.rc
+++ b/win/fossil.rc
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/win/fossil.rc
+++ b/win/fossil.rc
@@ -0,0 +1,29 @@
1 #include <windows.h>
2
3 #define _RC_COMPISUBLANG_ENGLISH_US
4
5 VS
6 PRODUCTVERSION 1,0,0,0
7
8 FILEFLAGS 0x0
9
10
11 FILESUBTYPE VFT2_UNKNOWN
12 BEGIN
13 BLOCK "StringFileInfo"
14 BEGIN
15 Bdistributed source code control system with integrated wiki and ticket-system\0"
16 VALUE "Comments", "compiler: "COMPILER_NAME"\0"
17 VALUE "FileVersion", MANIFEST_UUID"("COMPILER_NAME"\0"
18
19 (c) "MANIFES
20
21 Version", MANIFEST_VERSION" "MANIFEST_DATE" UTC\0"
22 END
23 END
24 BLOCK "VarFileInfo"
25 BEGIN
26
27 END
28 END
29
--- win/version.c
+++ win/version.c
@@ -10,10 +10,11 @@
1010
printf("#define MANIFEST_VERSION \"[%10.10s]\"\n",b);
1111
m = fopen(argv[2],"r");
1212
while(b == fgets(b, sizeof(b)-1,m)){
1313
if(0 == strncmp("D ",b,2)){
1414
printf("#define MANIFEST_DATE \"%.10s %.8s\"\n",b+2,b+13);
15
+ printf("#define MANIFEST_YEAR \"%.4s\"\n",b+2);
1516
return 0;
1617
}
1718
}
1819
return 1;
1920
}
2021
--- win/version.c
+++ win/version.c
@@ -10,10 +10,11 @@
10 printf("#define MANIFEST_VERSION \"[%10.10s]\"\n",b);
11 m = fopen(argv[2],"r");
12 while(b == fgets(b, sizeof(b)-1,m)){
13 if(0 == strncmp("D ",b,2)){
14 printf("#define MANIFEST_DATE \"%.10s %.8s\"\n",b+2,b+13);
 
15 return 0;
16 }
17 }
18 return 1;
19 }
20
--- win/version.c
+++ win/version.c
@@ -10,10 +10,11 @@
10 printf("#define MANIFEST_VERSION \"[%10.10s]\"\n",b);
11 m = fopen(argv[2],"r");
12 while(b == fgets(b, sizeof(b)-1,m)){
13 if(0 == strncmp("D ",b,2)){
14 printf("#define MANIFEST_DATE \"%.10s %.8s\"\n",b+2,b+13);
15 printf("#define MANIFEST_YEAR \"%.4s\"\n",b+2);
16 return 0;
17 }
18 }
19 return 1;
20 }
21

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button