Fossil SCM

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

Keyboard Shortcuts

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