Fossil SCM
Add support for using TH1 for embedded documentation files. Disabled by default at compile-time and at runtime.
Commit
c91bafccb5ee558095d53b9d95afbfc9359e22e4
Parent
90e75800c1149a4…
11 files changed
+7
+3
+13
+10
+3
+18
+6
+10
+10
+8
+5
M
auto.def
+7
| --- auto.def | ||
| +++ auto.def | ||
| @@ -5,10 +5,11 @@ | ||
| 5 | 5 | options { |
| 6 | 6 | with-openssl:path|auto|none |
| 7 | 7 | => {Look for OpenSSL in the given path, or auto or none} |
| 8 | 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | 9 | with-zlib:path => {Look for zlib in the given path} |
| 10 | + with-th1-docs=0 => {Enable TH1 for embedded documentation pages} | |
| 10 | 11 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 11 | 12 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 12 | 13 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 13 | 14 | with-tcl-private-stubs=0 |
| 14 | 15 | => {Enable Tcl integration via private stubs mechanism} |
| @@ -84,10 +85,16 @@ | ||
| 84 | 85 | # reading config.h first. |
| 85 | 86 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 86 | 87 | define FOSSIL_ENABLE_JSON |
| 87 | 88 | msg-result "JSON support enabled" |
| 88 | 89 | } |
| 90 | + | |
| 91 | +if {[opt-bool with-th1-docs]} { | |
| 92 | + define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_TH1_DOCS | |
| 93 | + define FOSSIL_ENABLE_TH1_DOCS | |
| 94 | + msg-result "TH1 embedded documentation support enabled" | |
| 95 | +} | |
| 89 | 96 | |
| 90 | 97 | if {[opt-bool with-th1-hooks]} { |
| 91 | 98 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_TH1_HOOKS |
| 92 | 99 | define FOSSIL_ENABLE_TH1_HOOKS |
| 93 | 100 | msg-result "TH1 hooks support enabled" |
| 94 | 101 |
| --- auto.def | |
| +++ auto.def | |
| @@ -5,10 +5,11 @@ | |
| 5 | options { |
| 6 | with-openssl:path|auto|none |
| 7 | => {Look for OpenSSL in the given path, or auto or none} |
| 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | with-zlib:path => {Look for zlib in the given path} |
| 10 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 11 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 12 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 13 | with-tcl-private-stubs=0 |
| 14 | => {Enable Tcl integration via private stubs mechanism} |
| @@ -84,10 +85,16 @@ | |
| 84 | # reading config.h first. |
| 85 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 86 | define FOSSIL_ENABLE_JSON |
| 87 | msg-result "JSON support enabled" |
| 88 | } |
| 89 | |
| 90 | if {[opt-bool with-th1-hooks]} { |
| 91 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_TH1_HOOKS |
| 92 | define FOSSIL_ENABLE_TH1_HOOKS |
| 93 | msg-result "TH1 hooks support enabled" |
| 94 |
| --- auto.def | |
| +++ auto.def | |
| @@ -5,10 +5,11 @@ | |
| 5 | options { |
| 6 | with-openssl:path|auto|none |
| 7 | => {Look for OpenSSL in the given path, or auto or none} |
| 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | with-zlib:path => {Look for zlib in the given path} |
| 10 | with-th1-docs=0 => {Enable TH1 for embedded documentation pages} |
| 11 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 12 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 13 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 14 | with-tcl-private-stubs=0 |
| 15 | => {Enable Tcl integration via private stubs mechanism} |
| @@ -84,10 +85,16 @@ | |
| 85 | # reading config.h first. |
| 86 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 87 | define FOSSIL_ENABLE_JSON |
| 88 | msg-result "JSON support enabled" |
| 89 | } |
| 90 | |
| 91 | if {[opt-bool with-th1-docs]} { |
| 92 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_TH1_DOCS |
| 93 | define FOSSIL_ENABLE_TH1_DOCS |
| 94 | msg-result "TH1 embedded documentation support enabled" |
| 95 | } |
| 96 | |
| 97 | if {[opt-bool with-th1-hooks]} { |
| 98 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_TH1_HOOKS |
| 99 | define FOSSIL_ENABLE_TH1_HOOKS |
| 100 | msg-result "TH1 hooks support enabled" |
| 101 |
+3
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -97,10 +97,13 @@ | ||
| 97 | 97 | { "timeline-max-comment", CONFIGSET_SKIN }, |
| 98 | 98 | { "timeline-plaintext", CONFIGSET_SKIN }, |
| 99 | 99 | { "adunit", CONFIGSET_SKIN }, |
| 100 | 100 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 101 | 101 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 102 | +#ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 103 | + { "th1-docs", CONFIGSET_TH1 }, | |
| 104 | +#endif | |
| 102 | 105 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 103 | 106 | { "th1-hooks", CONFIGSET_TH1 }, |
| 104 | 107 | #endif |
| 105 | 108 | { "th1-setup", CONFIGSET_TH1 }, |
| 106 | 109 | { "th1-uri-regexp", CONFIGSET_TH1 }, |
| 107 | 110 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -97,10 +97,13 @@ | |
| 97 | { "timeline-max-comment", CONFIGSET_SKIN }, |
| 98 | { "timeline-plaintext", CONFIGSET_SKIN }, |
| 99 | { "adunit", CONFIGSET_SKIN }, |
| 100 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 101 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 102 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 103 | { "th1-hooks", CONFIGSET_TH1 }, |
| 104 | #endif |
| 105 | { "th1-setup", CONFIGSET_TH1 }, |
| 106 | { "th1-uri-regexp", CONFIGSET_TH1 }, |
| 107 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -97,10 +97,13 @@ | |
| 97 | { "timeline-max-comment", CONFIGSET_SKIN }, |
| 98 | { "timeline-plaintext", CONFIGSET_SKIN }, |
| 99 | { "adunit", CONFIGSET_SKIN }, |
| 100 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 101 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 102 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 103 | { "th1-docs", CONFIGSET_TH1 }, |
| 104 | #endif |
| 105 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 106 | { "th1-hooks", CONFIGSET_TH1 }, |
| 107 | #endif |
| 108 | { "th1-setup", CONFIGSET_TH1 }, |
| 109 | { "th1-uri-regexp", CONFIGSET_TH1 }, |
| 110 |
M
src/db.c
+13
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2201,10 +2201,13 @@ | ||
| 2201 | 2201 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2202 | 2202 | #ifdef FOSSIL_ENABLE_TCL |
| 2203 | 2203 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2204 | 2204 | { "tcl-setup", 0, 40, 1, 1, "" }, |
| 2205 | 2205 | #endif |
| 2206 | +#ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 2207 | + { "th1-docs", 0, 0, 0, 0, "off" }, | |
| 2208 | +#endif | |
| 2206 | 2209 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 2207 | 2210 | { "th1-hooks", 0, 0, 0, 0, "off" }, |
| 2208 | 2211 | #endif |
| 2209 | 2212 | { "th1-setup", 0, 40, 1, 1, "" }, |
| 2210 | 2213 | { "th1-uri-regexp", 0, 40, 1, 0, "" }, |
| @@ -2410,10 +2413,20 @@ | ||
| 2410 | 2413 | ** expressions and scripts. Default: off. |
| 2411 | 2414 | ** |
| 2412 | 2415 | ** tcl-setup This is the setup script to be evaluated after creating |
| 2413 | 2416 | ** (versionable) and initializing the Tcl interpreter. By default, this |
| 2414 | 2417 | ** is empty and no extra setup is performed. |
| 2418 | +** | |
| 2419 | +** th1-docs WARNING: If enabled (and Fossil was compiled with TH1 | |
| 2420 | +** support for embedded documentation files), this allows | |
| 2421 | +** embedded documentation files to contain arbitrary TH1 | |
| 2422 | +** scripts that are evaluated on the server. If native | |
| 2423 | +** Tcl integration is also enabled, this setting has the | |
| 2424 | +** potential to allow anybody with check-in privileges to | |
| 2425 | +** do almost anything that the associated operating system | |
| 2426 | +** user account could do. Extreme caution should be used | |
| 2427 | +** when enabling this setting. Default: off. | |
| 2415 | 2428 | ** |
| 2416 | 2429 | ** th1-hooks If enabled (and Fossil was compiled with support for TH1 |
| 2417 | 2430 | ** hooks), special TH1 commands will be called before and |
| 2418 | 2431 | ** after any Fossil command or web page. Default: off. |
| 2419 | 2432 | ** |
| 2420 | 2433 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2201,10 +2201,13 @@ | |
| 2201 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2202 | #ifdef FOSSIL_ENABLE_TCL |
| 2203 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2204 | { "tcl-setup", 0, 40, 1, 1, "" }, |
| 2205 | #endif |
| 2206 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 2207 | { "th1-hooks", 0, 0, 0, 0, "off" }, |
| 2208 | #endif |
| 2209 | { "th1-setup", 0, 40, 1, 1, "" }, |
| 2210 | { "th1-uri-regexp", 0, 40, 1, 0, "" }, |
| @@ -2410,10 +2413,20 @@ | |
| 2410 | ** expressions and scripts. Default: off. |
| 2411 | ** |
| 2412 | ** tcl-setup This is the setup script to be evaluated after creating |
| 2413 | ** (versionable) and initializing the Tcl interpreter. By default, this |
| 2414 | ** is empty and no extra setup is performed. |
| 2415 | ** |
| 2416 | ** th1-hooks If enabled (and Fossil was compiled with support for TH1 |
| 2417 | ** hooks), special TH1 commands will be called before and |
| 2418 | ** after any Fossil command or web page. Default: off. |
| 2419 | ** |
| 2420 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2201,10 +2201,13 @@ | |
| 2201 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2202 | #ifdef FOSSIL_ENABLE_TCL |
| 2203 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2204 | { "tcl-setup", 0, 40, 1, 1, "" }, |
| 2205 | #endif |
| 2206 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 2207 | { "th1-docs", 0, 0, 0, 0, "off" }, |
| 2208 | #endif |
| 2209 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 2210 | { "th1-hooks", 0, 0, 0, 0, "off" }, |
| 2211 | #endif |
| 2212 | { "th1-setup", 0, 40, 1, 1, "" }, |
| 2213 | { "th1-uri-regexp", 0, 40, 1, 0, "" }, |
| @@ -2410,10 +2413,20 @@ | |
| 2413 | ** expressions and scripts. Default: off. |
| 2414 | ** |
| 2415 | ** tcl-setup This is the setup script to be evaluated after creating |
| 2416 | ** (versionable) and initializing the Tcl interpreter. By default, this |
| 2417 | ** is empty and no extra setup is performed. |
| 2418 | ** |
| 2419 | ** th1-docs WARNING: If enabled (and Fossil was compiled with TH1 |
| 2420 | ** support for embedded documentation files), this allows |
| 2421 | ** embedded documentation files to contain arbitrary TH1 |
| 2422 | ** scripts that are evaluated on the server. If native |
| 2423 | ** Tcl integration is also enabled, this setting has the |
| 2424 | ** potential to allow anybody with check-in privileges to |
| 2425 | ** do almost anything that the associated operating system |
| 2426 | ** user account could do. Extreme caution should be used |
| 2427 | ** when enabling this setting. Default: off. |
| 2428 | ** |
| 2429 | ** th1-hooks If enabled (and Fossil was compiled with support for TH1 |
| 2430 | ** hooks), special TH1 commands will be called before and |
| 2431 | ** after any Fossil command or web page. Default: off. |
| 2432 | ** |
| 2433 |
+10
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -256,10 +256,11 @@ | ||
| 256 | 256 | { "tcl", 3, "application/x-tcl" }, |
| 257 | 257 | { "tex", 3, "application/x-tex" }, |
| 258 | 258 | { "texi", 4, "application/x-texinfo" }, |
| 259 | 259 | { "texinfo", 7, "application/x-texinfo" }, |
| 260 | 260 | { "tgz", 3, "application/x-tar-gz" }, |
| 261 | + { "th1", 3, "application/x-th1" }, | |
| 261 | 262 | { "tif", 3, "image/tiff" }, |
| 262 | 263 | { "tiff", 4, "image/tiff" }, |
| 263 | 264 | { "tr", 2, "application/x-troff" }, |
| 264 | 265 | { "tsi", 3, "audio/TSP-audio" }, |
| 265 | 266 | { "tsp", 3, "application/dsptype" }, |
| @@ -524,10 +525,19 @@ | ||
| 524 | 525 | style_header("Documentation"); |
| 525 | 526 | @ <blockquote><pre> |
| 526 | 527 | @ %h(blob_str(&filebody)) |
| 527 | 528 | @ </pre></blockquote> |
| 528 | 529 | style_footer(); |
| 530 | +#ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 531 | + }else if( db_get_boolean("th1-docs", 0) && | |
| 532 | + fossil_strcmp(zMime, "application/x-th1")==0 ){ | |
| 533 | + char *zHtml = htmlize(zName, -1); | |
| 534 | + style_header(zHtml); | |
| 535 | + Th_Render(blob_str(&filebody)); | |
| 536 | + style_footer(); | |
| 537 | + fossil_free(zHtml); | |
| 538 | +#endif | |
| 529 | 539 | }else{ |
| 530 | 540 | cgi_set_content_type(zMime); |
| 531 | 541 | cgi_set_content(&filebody); |
| 532 | 542 | } |
| 533 | 543 | return; |
| 534 | 544 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -256,10 +256,11 @@ | |
| 256 | { "tcl", 3, "application/x-tcl" }, |
| 257 | { "tex", 3, "application/x-tex" }, |
| 258 | { "texi", 4, "application/x-texinfo" }, |
| 259 | { "texinfo", 7, "application/x-texinfo" }, |
| 260 | { "tgz", 3, "application/x-tar-gz" }, |
| 261 | { "tif", 3, "image/tiff" }, |
| 262 | { "tiff", 4, "image/tiff" }, |
| 263 | { "tr", 2, "application/x-troff" }, |
| 264 | { "tsi", 3, "audio/TSP-audio" }, |
| 265 | { "tsp", 3, "application/dsptype" }, |
| @@ -524,10 +525,19 @@ | |
| 524 | style_header("Documentation"); |
| 525 | @ <blockquote><pre> |
| 526 | @ %h(blob_str(&filebody)) |
| 527 | @ </pre></blockquote> |
| 528 | style_footer(); |
| 529 | }else{ |
| 530 | cgi_set_content_type(zMime); |
| 531 | cgi_set_content(&filebody); |
| 532 | } |
| 533 | return; |
| 534 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -256,10 +256,11 @@ | |
| 256 | { "tcl", 3, "application/x-tcl" }, |
| 257 | { "tex", 3, "application/x-tex" }, |
| 258 | { "texi", 4, "application/x-texinfo" }, |
| 259 | { "texinfo", 7, "application/x-texinfo" }, |
| 260 | { "tgz", 3, "application/x-tar-gz" }, |
| 261 | { "th1", 3, "application/x-th1" }, |
| 262 | { "tif", 3, "image/tiff" }, |
| 263 | { "tiff", 4, "image/tiff" }, |
| 264 | { "tr", 2, "application/x-troff" }, |
| 265 | { "tsi", 3, "audio/TSP-audio" }, |
| 266 | { "tsp", 3, "application/dsptype" }, |
| @@ -524,10 +525,19 @@ | |
| 525 | style_header("Documentation"); |
| 526 | @ <blockquote><pre> |
| 527 | @ %h(blob_str(&filebody)) |
| 528 | @ </pre></blockquote> |
| 529 | style_footer(); |
| 530 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 531 | }else if( db_get_boolean("th1-docs", 0) && |
| 532 | fossil_strcmp(zMime, "application/x-th1")==0 ){ |
| 533 | char *zHtml = htmlize(zName, -1); |
| 534 | style_header(zHtml); |
| 535 | Th_Render(blob_str(&filebody)); |
| 536 | style_footer(); |
| 537 | fossil_free(zHtml); |
| 538 | #endif |
| 539 | }else{ |
| 540 | cgi_set_content_type(zMime); |
| 541 | cgi_set_content(&filebody); |
| 542 | } |
| 543 | return; |
| 544 |
+3
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -975,10 +975,13 @@ | ||
| 975 | 975 | #else |
| 976 | 976 | fossil_print("zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 977 | 977 | #endif |
| 978 | 978 | #if defined(FOSSIL_ENABLE_SSL) |
| 979 | 979 | fossil_print("SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 980 | +#endif | |
| 981 | +#if defined(FOSSIL_ENABLE_TH1_DOCS) | |
| 982 | + fossil_print("TH1_DOCS\n"); | |
| 980 | 983 | #endif |
| 981 | 984 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 982 | 985 | fossil_print("TH1_HOOKS\n"); |
| 983 | 986 | #endif |
| 984 | 987 | #if defined(FOSSIL_ENABLE_TCL) |
| 985 | 988 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -975,10 +975,13 @@ | |
| 975 | #else |
| 976 | fossil_print("zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 977 | #endif |
| 978 | #if defined(FOSSIL_ENABLE_SSL) |
| 979 | fossil_print("SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 980 | #endif |
| 981 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 982 | fossil_print("TH1_HOOKS\n"); |
| 983 | #endif |
| 984 | #if defined(FOSSIL_ENABLE_TCL) |
| 985 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -975,10 +975,13 @@ | |
| 975 | #else |
| 976 | fossil_print("zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 977 | #endif |
| 978 | #if defined(FOSSIL_ENABLE_SSL) |
| 979 | fossil_print("SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 980 | #endif |
| 981 | #if defined(FOSSIL_ENABLE_TH1_DOCS) |
| 982 | fossil_print("TH1_DOCS\n"); |
| 983 | #endif |
| 984 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 985 | fossil_print("TH1_HOOKS\n"); |
| 986 | #endif |
| 987 | #if defined(FOSSIL_ENABLE_TCL) |
| 988 |
+18
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -444,10 +444,14 @@ | ||
| 444 | 444 | |
| 445 | 445 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 446 | 446 | # issues when building incrementally). |
| 447 | 447 | # |
| 448 | 448 | # FOSSIL_BUILD_SSL = 1 |
| 449 | + | |
| 450 | +#### Enable TH1 scripts in embedded documentation files | |
| 451 | +# | |
| 452 | +# FOSSIL_ENABLE_TH1_DOCS = 1 | |
| 449 | 453 | |
| 450 | 454 | #### Enable hooks for commands and web pages via TH1 |
| 451 | 455 | # |
| 452 | 456 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 453 | 457 | |
| @@ -597,10 +601,16 @@ | ||
| 597 | 601 | # With HTTPS support |
| 598 | 602 | ifdef FOSSIL_ENABLE_SSL |
| 599 | 603 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 600 | 604 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 601 | 605 | endif |
| 606 | + | |
| 607 | +# With TH1 embedded docs support | |
| 608 | +ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 609 | +TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 610 | +RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 611 | +endif | |
| 602 | 612 | |
| 603 | 613 | # With TH1 hook support |
| 604 | 614 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 605 | 615 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 606 | 616 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| @@ -1157,10 +1167,13 @@ | ||
| 1157 | 1167 | # Uncomment to enable miniz usage |
| 1158 | 1168 | # FOSSIL_ENABLE_MINIZ = 1 |
| 1159 | 1169 | |
| 1160 | 1170 | # Uncomment to enable SSL support |
| 1161 | 1171 | # FOSSIL_ENABLE_SSL = 1 |
| 1172 | + | |
| 1173 | +# Uncomment to enable TH1 scripts in embedded documentation files | |
| 1174 | +# FOSSIL_ENABLE_TH1_DOCS = 1 | |
| 1162 | 1175 | |
| 1163 | 1176 | # Uncomment to enable TH1 hooks |
| 1164 | 1177 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 1165 | 1178 | |
| 1166 | 1179 | # Uncomment to enable Tcl support |
| @@ -1233,10 +1246,15 @@ | ||
| 1233 | 1246 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 1234 | 1247 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 1235 | 1248 | LIBS = $(LIBS) $(SSLLIB) |
| 1236 | 1249 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 1237 | 1250 | !endif |
| 1251 | + | |
| 1252 | +!ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 1253 | +TCC = $(TCC) /DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 1254 | +RCC = $(RCC) /DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 1255 | +!endif | |
| 1238 | 1256 | |
| 1239 | 1257 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 1240 | 1258 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1241 | 1259 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1242 | 1260 | !endif |
| 1243 | 1261 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -444,10 +444,14 @@ | |
| 444 | |
| 445 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 446 | # issues when building incrementally). |
| 447 | # |
| 448 | # FOSSIL_BUILD_SSL = 1 |
| 449 | |
| 450 | #### Enable hooks for commands and web pages via TH1 |
| 451 | # |
| 452 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 453 | |
| @@ -597,10 +601,16 @@ | |
| 597 | # With HTTPS support |
| 598 | ifdef FOSSIL_ENABLE_SSL |
| 599 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 600 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 601 | endif |
| 602 | |
| 603 | # With TH1 hook support |
| 604 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 605 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 606 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| @@ -1157,10 +1167,13 @@ | |
| 1157 | # Uncomment to enable miniz usage |
| 1158 | # FOSSIL_ENABLE_MINIZ = 1 |
| 1159 | |
| 1160 | # Uncomment to enable SSL support |
| 1161 | # FOSSIL_ENABLE_SSL = 1 |
| 1162 | |
| 1163 | # Uncomment to enable TH1 hooks |
| 1164 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 1165 | |
| 1166 | # Uncomment to enable Tcl support |
| @@ -1233,10 +1246,15 @@ | |
| 1233 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 1234 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 1235 | LIBS = $(LIBS) $(SSLLIB) |
| 1236 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 1237 | !endif |
| 1238 | |
| 1239 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 1240 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1241 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1242 | !endif |
| 1243 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -444,10 +444,14 @@ | |
| 444 | |
| 445 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 446 | # issues when building incrementally). |
| 447 | # |
| 448 | # FOSSIL_BUILD_SSL = 1 |
| 449 | |
| 450 | #### Enable TH1 scripts in embedded documentation files |
| 451 | # |
| 452 | # FOSSIL_ENABLE_TH1_DOCS = 1 |
| 453 | |
| 454 | #### Enable hooks for commands and web pages via TH1 |
| 455 | # |
| 456 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 457 | |
| @@ -597,10 +601,16 @@ | |
| 601 | # With HTTPS support |
| 602 | ifdef FOSSIL_ENABLE_SSL |
| 603 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 604 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 605 | endif |
| 606 | |
| 607 | # With TH1 embedded docs support |
| 608 | ifdef FOSSIL_ENABLE_TH1_DOCS |
| 609 | TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 610 | RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 611 | endif |
| 612 | |
| 613 | # With TH1 hook support |
| 614 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 615 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 616 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| @@ -1157,10 +1167,13 @@ | |
| 1167 | # Uncomment to enable miniz usage |
| 1168 | # FOSSIL_ENABLE_MINIZ = 1 |
| 1169 | |
| 1170 | # Uncomment to enable SSL support |
| 1171 | # FOSSIL_ENABLE_SSL = 1 |
| 1172 | |
| 1173 | # Uncomment to enable TH1 scripts in embedded documentation files |
| 1174 | # FOSSIL_ENABLE_TH1_DOCS = 1 |
| 1175 | |
| 1176 | # Uncomment to enable TH1 hooks |
| 1177 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 1178 | |
| 1179 | # Uncomment to enable Tcl support |
| @@ -1233,10 +1246,15 @@ | |
| 1246 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 1247 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 1248 | LIBS = $(LIBS) $(SSLLIB) |
| 1249 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 1250 | !endif |
| 1251 | |
| 1252 | !ifdef FOSSIL_ENABLE_TH1_DOCS |
| 1253 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_DOCS=1 |
| 1254 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_DOCS=1 |
| 1255 | !endif |
| 1256 | |
| 1257 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 1258 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1259 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 1260 | !endif |
| 1261 |
+6
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -373,10 +373,11 @@ | ||
| 373 | 373 | ** |
| 374 | 374 | ** Return true if the fossil binary has the given compile-time feature |
| 375 | 375 | ** enabled. The set of features includes: |
| 376 | 376 | ** |
| 377 | 377 | ** "ssl" = FOSSIL_ENABLE_SSL |
| 378 | +** "th1Docs" = FOSSIL_ENABLE_TH1_DOCS | |
| 378 | 379 | ** "th1Hooks" = FOSSIL_ENABLE_TH1_HOOKS |
| 379 | 380 | ** "tcl" = FOSSIL_ENABLE_TCL |
| 380 | 381 | ** "useTclStubs" = USE_TCL_STUBS |
| 381 | 382 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 382 | 383 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| @@ -402,10 +403,15 @@ | ||
| 402 | 403 | } |
| 403 | 404 | #if defined(FOSSIL_ENABLE_SSL) |
| 404 | 405 | else if( 0 == fossil_strnicmp( zArg, "ssl\0", 4 ) ){ |
| 405 | 406 | rc = 1; |
| 406 | 407 | } |
| 408 | +#endif | |
| 409 | +#if defined(FOSSIL_ENABLE_TH1_DOCS) | |
| 410 | + else if( 0 == fossil_strnicmp( zArg, "th1Docs\0", 8 ) ){ | |
| 411 | + rc = 1; | |
| 412 | + } | |
| 407 | 413 | #endif |
| 408 | 414 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 409 | 415 | else if( 0 == fossil_strnicmp( zArg, "th1Hooks\0", 9 ) ){ |
| 410 | 416 | rc = 1; |
| 411 | 417 | } |
| 412 | 418 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -373,10 +373,11 @@ | |
| 373 | ** |
| 374 | ** Return true if the fossil binary has the given compile-time feature |
| 375 | ** enabled. The set of features includes: |
| 376 | ** |
| 377 | ** "ssl" = FOSSIL_ENABLE_SSL |
| 378 | ** "th1Hooks" = FOSSIL_ENABLE_TH1_HOOKS |
| 379 | ** "tcl" = FOSSIL_ENABLE_TCL |
| 380 | ** "useTclStubs" = USE_TCL_STUBS |
| 381 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 382 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| @@ -402,10 +403,15 @@ | |
| 402 | } |
| 403 | #if defined(FOSSIL_ENABLE_SSL) |
| 404 | else if( 0 == fossil_strnicmp( zArg, "ssl\0", 4 ) ){ |
| 405 | rc = 1; |
| 406 | } |
| 407 | #endif |
| 408 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 409 | else if( 0 == fossil_strnicmp( zArg, "th1Hooks\0", 9 ) ){ |
| 410 | rc = 1; |
| 411 | } |
| 412 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -373,10 +373,11 @@ | |
| 373 | ** |
| 374 | ** Return true if the fossil binary has the given compile-time feature |
| 375 | ** enabled. The set of features includes: |
| 376 | ** |
| 377 | ** "ssl" = FOSSIL_ENABLE_SSL |
| 378 | ** "th1Docs" = FOSSIL_ENABLE_TH1_DOCS |
| 379 | ** "th1Hooks" = FOSSIL_ENABLE_TH1_HOOKS |
| 380 | ** "tcl" = FOSSIL_ENABLE_TCL |
| 381 | ** "useTclStubs" = USE_TCL_STUBS |
| 382 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 383 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| @@ -402,10 +403,15 @@ | |
| 403 | } |
| 404 | #if defined(FOSSIL_ENABLE_SSL) |
| 405 | else if( 0 == fossil_strnicmp( zArg, "ssl\0", 4 ) ){ |
| 406 | rc = 1; |
| 407 | } |
| 408 | #endif |
| 409 | #if defined(FOSSIL_ENABLE_TH1_DOCS) |
| 410 | else if( 0 == fossil_strnicmp( zArg, "th1Docs\0", 8 ) ){ |
| 411 | rc = 1; |
| 412 | } |
| 413 | #endif |
| 414 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 415 | else if( 0 == fossil_strnicmp( zArg, "th1Hooks\0", 9 ) ){ |
| 416 | rc = 1; |
| 417 | } |
| 418 |
+10
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -52,10 +52,14 @@ | ||
| 52 | 52 | |
| 53 | 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | 54 | # issues when building incrementally). |
| 55 | 55 | # |
| 56 | 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | + | |
| 58 | +#### Enable TH1 scripts in embedded documentation files | |
| 59 | +# | |
| 60 | +# FOSSIL_ENABLE_TH1_DOCS = 1 | |
| 57 | 61 | |
| 58 | 62 | #### Enable hooks for commands and web pages via TH1 |
| 59 | 63 | # |
| 60 | 64 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 61 | 65 | |
| @@ -205,10 +209,16 @@ | ||
| 205 | 209 | # With HTTPS support |
| 206 | 210 | ifdef FOSSIL_ENABLE_SSL |
| 207 | 211 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 208 | 212 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 209 | 213 | endif |
| 214 | + | |
| 215 | +# With TH1 embedded docs support | |
| 216 | +ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 217 | +TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 218 | +RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 219 | +endif | |
| 210 | 220 | |
| 211 | 221 | # With TH1 hook support |
| 212 | 222 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 213 | 223 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 214 | 224 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 215 | 225 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -52,10 +52,14 @@ | |
| 52 | |
| 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | # issues when building incrementally). |
| 55 | # |
| 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | |
| 58 | #### Enable hooks for commands and web pages via TH1 |
| 59 | # |
| 60 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 61 | |
| @@ -205,10 +209,16 @@ | |
| 205 | # With HTTPS support |
| 206 | ifdef FOSSIL_ENABLE_SSL |
| 207 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 208 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 209 | endif |
| 210 | |
| 211 | # With TH1 hook support |
| 212 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 213 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 214 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 215 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -52,10 +52,14 @@ | |
| 52 | |
| 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | # issues when building incrementally). |
| 55 | # |
| 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | |
| 58 | #### Enable TH1 scripts in embedded documentation files |
| 59 | # |
| 60 | # FOSSIL_ENABLE_TH1_DOCS = 1 |
| 61 | |
| 62 | #### Enable hooks for commands and web pages via TH1 |
| 63 | # |
| 64 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 65 | |
| @@ -205,10 +209,16 @@ | |
| 209 | # With HTTPS support |
| 210 | ifdef FOSSIL_ENABLE_SSL |
| 211 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 212 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 213 | endif |
| 214 | |
| 215 | # With TH1 embedded docs support |
| 216 | ifdef FOSSIL_ENABLE_TH1_DOCS |
| 217 | TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 218 | RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 219 | endif |
| 220 | |
| 221 | # With TH1 hook support |
| 222 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 223 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 224 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 225 |
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -52,10 +52,14 @@ | ||
| 52 | 52 | |
| 53 | 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | 54 | # issues when building incrementally). |
| 55 | 55 | # |
| 56 | 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | + | |
| 58 | +#### Enable TH1 scripts in embedded documentation files | |
| 59 | +# | |
| 60 | +# FOSSIL_ENABLE_TH1_DOCS = 1 | |
| 57 | 61 | |
| 58 | 62 | #### Enable hooks for commands and web pages via TH1 |
| 59 | 63 | # |
| 60 | 64 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 61 | 65 | |
| @@ -205,10 +209,16 @@ | ||
| 205 | 209 | # With HTTPS support |
| 206 | 210 | ifdef FOSSIL_ENABLE_SSL |
| 207 | 211 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 208 | 212 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 209 | 213 | endif |
| 214 | + | |
| 215 | +# With TH1 embedded docs support | |
| 216 | +ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 217 | +TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 218 | +RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 219 | +endif | |
| 210 | 220 | |
| 211 | 221 | # With TH1 hook support |
| 212 | 222 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 213 | 223 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 214 | 224 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 215 | 225 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -52,10 +52,14 @@ | |
| 52 | |
| 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | # issues when building incrementally). |
| 55 | # |
| 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | |
| 58 | #### Enable hooks for commands and web pages via TH1 |
| 59 | # |
| 60 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 61 | |
| @@ -205,10 +209,16 @@ | |
| 205 | # With HTTPS support |
| 206 | ifdef FOSSIL_ENABLE_SSL |
| 207 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 208 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 209 | endif |
| 210 | |
| 211 | # With TH1 hook support |
| 212 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 213 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 214 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 215 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -52,10 +52,14 @@ | |
| 52 | |
| 53 | #### Automatically build OpenSSL when building Fossil (causes rebuild |
| 54 | # issues when building incrementally). |
| 55 | # |
| 56 | # FOSSIL_BUILD_SSL = 1 |
| 57 | |
| 58 | #### Enable TH1 scripts in embedded documentation files |
| 59 | # |
| 60 | # FOSSIL_ENABLE_TH1_DOCS = 1 |
| 61 | |
| 62 | #### Enable hooks for commands and web pages via TH1 |
| 63 | # |
| 64 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 65 | |
| @@ -205,10 +209,16 @@ | |
| 209 | # With HTTPS support |
| 210 | ifdef FOSSIL_ENABLE_SSL |
| 211 | TCC += -DFOSSIL_ENABLE_SSL=1 |
| 212 | RCC += -DFOSSIL_ENABLE_SSL=1 |
| 213 | endif |
| 214 | |
| 215 | # With TH1 embedded docs support |
| 216 | ifdef FOSSIL_ENABLE_TH1_DOCS |
| 217 | TCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 218 | RCC += -DFOSSIL_ENABLE_TH1_DOCS=1 |
| 219 | endif |
| 220 | |
| 221 | # With TH1 hook support |
| 222 | ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 223 | TCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 224 | RCC += -DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 225 |
+8
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -26,10 +26,13 @@ | ||
| 26 | 26 | # Uncomment to enable miniz usage |
| 27 | 27 | # FOSSIL_ENABLE_MINIZ = 1 |
| 28 | 28 | |
| 29 | 29 | # Uncomment to enable SSL support |
| 30 | 30 | # FOSSIL_ENABLE_SSL = 1 |
| 31 | + | |
| 32 | +# Uncomment to enable TH1 scripts in embedded documentation files | |
| 33 | +# FOSSIL_ENABLE_TH1_DOCS = 1 | |
| 31 | 34 | |
| 32 | 35 | # Uncomment to enable TH1 hooks |
| 33 | 36 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 34 | 37 | |
| 35 | 38 | # Uncomment to enable Tcl support |
| @@ -102,10 +105,15 @@ | ||
| 102 | 105 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 103 | 106 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 104 | 107 | LIBS = $(LIBS) $(SSLLIB) |
| 105 | 108 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 106 | 109 | !endif |
| 110 | + | |
| 111 | +!ifdef FOSSIL_ENABLE_TH1_DOCS | |
| 112 | +TCC = $(TCC) /DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 113 | +RCC = $(RCC) /DFOSSIL_ENABLE_TH1_DOCS=1 | |
| 114 | +!endif | |
| 107 | 115 | |
| 108 | 116 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 109 | 117 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 110 | 118 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 111 | 119 | !endif |
| 112 | 120 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -26,10 +26,13 @@ | |
| 26 | # Uncomment to enable miniz usage |
| 27 | # FOSSIL_ENABLE_MINIZ = 1 |
| 28 | |
| 29 | # Uncomment to enable SSL support |
| 30 | # FOSSIL_ENABLE_SSL = 1 |
| 31 | |
| 32 | # Uncomment to enable TH1 hooks |
| 33 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 34 | |
| 35 | # Uncomment to enable Tcl support |
| @@ -102,10 +105,15 @@ | |
| 102 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 103 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 104 | LIBS = $(LIBS) $(SSLLIB) |
| 105 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 106 | !endif |
| 107 | |
| 108 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 109 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 110 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 111 | !endif |
| 112 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -26,10 +26,13 @@ | |
| 26 | # Uncomment to enable miniz usage |
| 27 | # FOSSIL_ENABLE_MINIZ = 1 |
| 28 | |
| 29 | # Uncomment to enable SSL support |
| 30 | # FOSSIL_ENABLE_SSL = 1 |
| 31 | |
| 32 | # Uncomment to enable TH1 scripts in embedded documentation files |
| 33 | # FOSSIL_ENABLE_TH1_DOCS = 1 |
| 34 | |
| 35 | # Uncomment to enable TH1 hooks |
| 36 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 37 | |
| 38 | # Uncomment to enable Tcl support |
| @@ -102,10 +105,15 @@ | |
| 105 | TCC = $(TCC) /DFOSSIL_ENABLE_SSL=1 |
| 106 | RCC = $(RCC) /DFOSSIL_ENABLE_SSL=1 |
| 107 | LIBS = $(LIBS) $(SSLLIB) |
| 108 | LIBDIR = $(LIBDIR) /LIBPATH:$(SSLLIBDIR) |
| 109 | !endif |
| 110 | |
| 111 | !ifdef FOSSIL_ENABLE_TH1_DOCS |
| 112 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_DOCS=1 |
| 113 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_DOCS=1 |
| 114 | !endif |
| 115 | |
| 116 | !ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 117 | TCC = $(TCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 118 | RCC = $(RCC) /DFOSSIL_ENABLE_TH1_HOOKS=1 |
| 119 | !endif |
| 120 |
+5
| --- win/fossil.rc | ||
| +++ win/fossil.rc | ||
| @@ -115,10 +115,15 @@ | ||
| 115 | 115 | VALUE "CommandLineIsUnicode", "Yes\0" |
| 116 | 116 | #endif /* defined(BROKEN_MINGW_CMDLINE) */ |
| 117 | 117 | #if defined(FOSSIL_ENABLE_SSL) |
| 118 | 118 | VALUE "SslEnabled", "Yes, " OPENSSL_VERSION_TEXT "\0" |
| 119 | 119 | #endif /* defined(FOSSIL_ENABLE_SSL) */ |
| 120 | +#if defined(FOSSIL_ENABLE_TH1_DOCS) | |
| 121 | + VALUE "Th1Docs", "Yes\0" | |
| 122 | +#else | |
| 123 | + VALUE "Th1Docs", "No\0" | |
| 124 | +#endif /* defined(FOSSIL_ENABLE_TH1_DOCS) */ | |
| 120 | 125 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 121 | 126 | VALUE "Th1Hooks", "Yes\0" |
| 122 | 127 | #else |
| 123 | 128 | VALUE "Th1Hooks", "No\0" |
| 124 | 129 | #endif /* defined(FOSSIL_ENABLE_TH1_HOOKS) */ |
| 125 | 130 |
| --- win/fossil.rc | |
| +++ win/fossil.rc | |
| @@ -115,10 +115,15 @@ | |
| 115 | VALUE "CommandLineIsUnicode", "Yes\0" |
| 116 | #endif /* defined(BROKEN_MINGW_CMDLINE) */ |
| 117 | #if defined(FOSSIL_ENABLE_SSL) |
| 118 | VALUE "SslEnabled", "Yes, " OPENSSL_VERSION_TEXT "\0" |
| 119 | #endif /* defined(FOSSIL_ENABLE_SSL) */ |
| 120 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 121 | VALUE "Th1Hooks", "Yes\0" |
| 122 | #else |
| 123 | VALUE "Th1Hooks", "No\0" |
| 124 | #endif /* defined(FOSSIL_ENABLE_TH1_HOOKS) */ |
| 125 |
| --- win/fossil.rc | |
| +++ win/fossil.rc | |
| @@ -115,10 +115,15 @@ | |
| 115 | VALUE "CommandLineIsUnicode", "Yes\0" |
| 116 | #endif /* defined(BROKEN_MINGW_CMDLINE) */ |
| 117 | #if defined(FOSSIL_ENABLE_SSL) |
| 118 | VALUE "SslEnabled", "Yes, " OPENSSL_VERSION_TEXT "\0" |
| 119 | #endif /* defined(FOSSIL_ENABLE_SSL) */ |
| 120 | #if defined(FOSSIL_ENABLE_TH1_DOCS) |
| 121 | VALUE "Th1Docs", "Yes\0" |
| 122 | #else |
| 123 | VALUE "Th1Docs", "No\0" |
| 124 | #endif /* defined(FOSSIL_ENABLE_TH1_DOCS) */ |
| 125 | #if defined(FOSSIL_ENABLE_TH1_HOOKS) |
| 126 | VALUE "Th1Hooks", "Yes\0" |
| 127 | #else |
| 128 | VALUE "Th1Hooks", "No\0" |
| 129 | #endif /* defined(FOSSIL_ENABLE_TH1_HOOKS) */ |
| 130 |