Fossil SCM
Tools
Various handy Fossil-related utilities.
Tools related to building Fossil
makemake.tclgeneratessrc/main.mkand the makefiles inwin/.www/makefile.wikidescribes the build.translate.cturns the@lines of HTML insrc/*.cinto C.makeheaders.cwrites the header for each source file;makeheaders.htmldocuments it.mkindex.cbuilds the tables of commands, web pages and settings from specially formatted comments.mkversion.cwritesVERSION.h.mkbuiltin.cturns the files built into Fossil, such as skins and JavaScript, into C arrays.sqlcompattest.cis the programconfigure --disable-internal-sqlitecompiles to check that the system SQLite is new enough.emcc.sh.inis the templateconfigureuses to writeemcc.sh, the wrapper for the Emscripten compiler thatmake wasmruns.randomize-js-names.tclthen renamesextsrc/pikchr.wasmandextsrc/pikchr.jsso that browsers do not use a stale cached copy.codecheck1.cchecks the printf-style format strings in the source, and warns of strings that could inject SQL or HTML.
Tools for Fossil's documentation
man_page_command_list.tclwrites the list of common commands forfossil.1.encode_math.shrenders the equations inart/encode*.texwith mimetex. Those.texfiles aren't in the tree.
Tools for testing Fossil
powerloss/powerloss.cis anLD_PRELOADlibrary for Linux/BSD that stops a program at each point where its SQLite database files could reach the disk.test/powerloss.testruns Fossil commands under it, andpowerloss/powerloss.shrunsfossil commitunder it by hand. See README-POWERLOSS.md.testbuild.shmakes a build with ASan and UBSan, or a build that records coverage, and prints the branch coverage of each source file.test/README.mddescribes its use.fossil-stress.tclsends HTTP requests to a Fossil server as fast as it can.fake-smtpd.tcllistens like an SMTP server and prints the conversation, for testing the email relay method.
Helpful tools for Fossil users
fslsrvis an example wrapper that startsfossil server, as perwww/server/any/none.md.find-fossil-cgis.tclfinds the CGI scripts that launch Fossil under a directory.email-sender.tclforwards each email Fossil has queued in a database to/usr/sbin/sendmail, andemail-monitor.tclprints the "To:" line of each message as it arrives.decode-email.cprints a raw email message in readable form.skintxt2config.cconverts skin files intofossil config importformat.fossil-autocomplete.bashandfossil-autocomplete.zshare autocomplete scripts for Bash and Zsh.fossil-diff-logprints the diff of each version of requested files, similar togit log -p.fossilwikiis a script to report empty, orphaned and unlinked wiki pages, and broken wiki links.co-rsync.tclcopies the uncommitted changes in a check-out to another machine over SSH.cvs2fossil/is a non-working CVS importer from 2007. It calls Fossil commands that no longer exist.