aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-12-12 18:21:41 -0500
committerGravatar Peter McGoron 2023-12-12 18:21:41 -0500
commit99f95e0fb32b11fec8d0d1a735b83e0dcb99eba4 (patch)
tree12517e613ccceee68605d4c6fd892d73d6c70884 /README.rst
parentfix archive and directory recursion errors (diff)
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst36
1 files changed, 30 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index a665d52..ea8dda6 100644
--- a/README.rst
+++ b/README.rst
@@ -13,13 +13,37 @@ an identical SHA256 sum, only one copy of the file is stored. The
relative directory of each file is stored.
-------------
-Installation
-------------
+-----------
+Compilation
+-----------
-All of this is included in the `tcc` directory.
+First you need to set up TCC.
1. Install TCC.
2. Download https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.14/
-3. Copy the ``include`` directory of this into `tcc/include/winapi`.
-4. Run `compile.bat`.
+3. Copy the ``include` directory of this into ``tcc/include/winapi``.
+
+After that, run ``compile.bat``. ``wlb.exe`` should be ready to run.
+
+-----
+Usage
+-----
+
+``wlb.exe`` executes each argument to it in sequence. Most of the time
+you will run ::
+ wlb.exe \V \D dbname.wlb \A dir1 \A dir2 ...
+
+``\V`` turns on verbose mode, which reports the name of each file
+as it is being read. You can remove this to make WLB only report errors, or
+you can use ``\VV`` to turn on debug mode.
+
+``\D`` denotes the name of the database. This must come before all archive
+commands. There can only be one ``\D`` specified per run. If specified file
+does not exist, it will be created. If the file is a SQL database whose user
+version is not a supported WLB version, the program will report an error and
+close.
+
+``\A`` requests WLB to archive a file or directory. If what follows is a
+directory, then WLB will archive every file under the directory, and in the
+directories under that, etc. There can be multiple ``\A`` commands corresponding
+to different files/directories.