|
f12a09c…
|
danshearer
|
1 |
# Tools |
|
f12a09c…
|
danshearer
|
2 |
|
|
f12a09c…
|
danshearer
|
3 |
Various handy Fossil-related utilities. |
|
f12a09c…
|
danshearer
|
4 |
|
|
f12a09c…
|
danshearer
|
5 |
## Tools related to building Fossil |
|
f12a09c…
|
danshearer
|
6 |
|
|
f12a09c…
|
danshearer
|
7 |
* `makemake.tcl` generates `src/main.mk` and the makefiles in `win/`. |
|
f12a09c…
|
danshearer
|
8 |
`www/makefile.wiki` describes the build. |
|
f12a09c…
|
danshearer
|
9 |
* `translate.c` turns the `@` lines of HTML in `src/*.c` into C. |
|
f12a09c…
|
danshearer
|
10 |
`makeheaders.c` writes the header for each source file; `makeheaders.html` |
|
f12a09c…
|
danshearer
|
11 |
documents it. `mkindex.c` builds the tables of commands, web pages and |
|
f12a09c…
|
danshearer
|
12 |
settings from specially formatted comments. `mkversion.c` writes |
|
f12a09c…
|
danshearer
|
13 |
`VERSION.h`. `mkbuiltin.c` turns the files built into Fossil, such as skins |
|
f12a09c…
|
danshearer
|
14 |
and JavaScript, into C arrays. |
|
f12a09c…
|
danshearer
|
15 |
* `sqlcompattest.c` is the program `configure --disable-internal-sqlite` |
|
f12a09c…
|
danshearer
|
16 |
compiles to check that the system SQLite is new enough. |
|
f12a09c…
|
danshearer
|
17 |
* `emcc.sh.in` is the template `configure` uses to write `emcc.sh`, the |
|
f12a09c…
|
danshearer
|
18 |
wrapper for the Emscripten compiler that `make wasm` runs. |
|
f12a09c…
|
danshearer
|
19 |
`randomize-js-names.tcl` then renames `extsrc/pikchr.wasm` and |
|
f12a09c…
|
danshearer
|
20 |
`extsrc/pikchr.js` so that browsers do not use a stale cached copy. |
|
f12a09c…
|
danshearer
|
21 |
* `codecheck1.c` checks the printf-style format strings in the source, and |
|
f12a09c…
|
danshearer
|
22 |
warns of strings that could inject SQL or HTML. |
|
f12a09c…
|
danshearer
|
23 |
|
|
f12a09c…
|
danshearer
|
24 |
## Tools for Fossil's documentation |
|
f12a09c…
|
danshearer
|
25 |
|
|
f12a09c…
|
danshearer
|
26 |
* `man_page_command_list.tcl` writes the list of common commands for |
|
f12a09c…
|
danshearer
|
27 |
`fossil.1`. |
|
f12a09c…
|
danshearer
|
28 |
* `encode_math.sh` renders the equations in `art/encode*.tex` with mimetex. |
|
f12a09c…
|
danshearer
|
29 |
Those `.tex` files aren't in the tree. |
|
f12a09c…
|
danshearer
|
30 |
|
|
f12a09c…
|
danshearer
|
31 |
## Tools for testing Fossil |
|
f12a09c…
|
danshearer
|
32 |
|
|
f12a09c…
|
danshearer
|
33 |
* `powerloss/powerloss.c` is an `LD_PRELOAD` library for Linux/BSD that stops |
|
f12a09c…
|
danshearer
|
34 |
a program at each point where its SQLite database files could reach the |
|
f12a09c…
|
danshearer
|
35 |
disk. `test/powerloss.test` runs Fossil commands under it, and |
|
f12a09c…
|
danshearer
|
36 |
`powerloss/powerloss.sh` runs `fossil commit` under it by hand. See |
|
f12a09c…
|
danshearer
|
37 |
[README-POWERLOSS.md](./powerloss/README-POWERLOSS.md). |
|
f12a09c…
|
danshearer
|
38 |
* `testbuild.sh` makes a build with ASan and UBSan, or a build that records |
|
f12a09c…
|
danshearer
|
39 |
coverage, and prints the branch coverage of each source file. |
|
f12a09c…
|
danshearer
|
40 |
`test/README.md` describes its use. |
|
f12a09c…
|
danshearer
|
41 |
* `fossil-stress.tcl` sends HTTP requests to a Fossil server as fast as it |
|
f12a09c…
|
danshearer
|
42 |
can. |
|
f12a09c…
|
danshearer
|
43 |
* `fake-smtpd.tcl` listens like an SMTP server and prints the conversation, |
|
f12a09c…
|
danshearer
|
44 |
for testing the email relay method. |
|
f12a09c…
|
danshearer
|
45 |
|
|
f12a09c…
|
danshearer
|
46 |
## Helpful tools for Fossil users |
|
f12a09c…
|
danshearer
|
47 |
|
|
f12a09c…
|
danshearer
|
48 |
* `fslsrv` is an example wrapper that starts `fossil server`, as per |
|
f12a09c…
|
danshearer
|
49 |
`www/server/any/none.md`. |
|
f12a09c…
|
danshearer
|
50 |
* `find-fossil-cgis.tcl` finds the CGI scripts that launch Fossil under a |
|
f12a09c…
|
danshearer
|
51 |
directory. |
|
f12a09c…
|
danshearer
|
52 |
* `email-sender.tcl` forwards each email Fossil has queued in a database to |
|
f12a09c…
|
danshearer
|
53 |
`/usr/sbin/sendmail`, and `email-monitor.tcl` prints the "To:" line of each |
|
f12a09c…
|
danshearer
|
54 |
message as it arrives. `decode-email.c` prints a raw email message in |
|
f12a09c…
|
danshearer
|
55 |
readable form. |
|
f12a09c…
|
danshearer
|
56 |
* `skintxt2config.c` converts skin files into `fossil config import` format. |
|
f12a09c…
|
danshearer
|
57 |
* `fossil-autocomplete.bash` and `fossil-autocomplete.zsh` are autocomplete |
|
f12a09c…
|
danshearer
|
58 |
scripts for Bash and Zsh. |
|
f12a09c…
|
danshearer
|
59 |
* `fossil-diff-log` prints the diff of each version of requested files, |
|
f12a09c…
|
danshearer
|
60 |
similar to `git log -p`. |
|
f12a09c…
|
danshearer
|
61 |
* `fossilwiki` is a script to report empty, orphaned and unlinked wiki pages, |
|
f12a09c…
|
danshearer
|
62 |
and broken wiki links. |
|
f12a09c…
|
danshearer
|
63 |
* `co-rsync.tcl` copies the uncommitted changes in a check-out to another |
|
f12a09c…
|
danshearer
|
64 |
machine over SSH. |
|
f12a09c…
|
danshearer
|
65 |
* `cvs2fossil/` is a non-working CVS importer from 2007. It calls Fossil |
|
f12a09c…
|
danshearer
|
66 |
commands that no longer exist. |