-dcpomatic_create.xml
-dcpomatic_kdm_cli.xml
-dcpomatic_cli.xml
\ No newline at end of file
config.xml: ../../src/lib/config.cc config.py
python3 config.py ../../src/lib/config.cc > config.xml
+# These require the tools to be runnable, so make needs to be run
+# in a built tree to update them. The .xml files are committed
+# to git to avoid this always being necessary.
dcpomatic_create.xml: ../../src/tools/dcpomatic_create.cc cli.py
python3 cli.py dcpomatic_create > dcpomatic_create.xml
--- /dev/null
+<para>
+<itemizedlist>
+<listitem><code>-v</code>, <code>--version</code> — show DCP-o-matic version</listitem>
+<listitem><code>-h</code>, <code>--help</code> — show this help</listitem>
+<listitem><code>-f</code>, <code>--flags</code> — show flags passed to C++ compiler on build</listitem>
+<listitem><code>-n</code>, <code>--no-progress</code> — do not print progress to stdout</listitem>
+<listitem><code>-r</code>, <code>--no-remote</code> — do not use any remote servers</listitem>
+<listitem><code>-t</code>, <code>--threads</code> — specify number of local encoding threads (overriding configuration)</listitem>
+<listitem><code>-j</code>, <code>--json <port></code> — run a JSON server on the specified port</listitem>
+<listitem><code>-k</code>, <code>--keep-going</code> — keep running even when the job is complete</listitem>
+<listitem><code>-s</code>, <code>--servers <file></code> — specify servers to use in a text file</listitem>
+<listitem><code>-l</code>, <code>--list-servers</code> — just display a list of encoding servers that DCP-o-matic is configured to use; don't encode</listitem>
+<listitem><code>-d</code>, <code>--dcp-path</code> — echo DCP's path to stdout on successful completion (implies -n)</listitem>
+<listitem><code>-c</code>, <code>--config <dir></code> — directory containing config.xml and cinemas.xml</listitem>
+<listitem><code>--dump</code> — just dump a summary of the film's settings; don't encode</listitem>
+</itemizedlist>
+</para>
\ No newline at end of file
--- /dev/null
+<para>
+<itemizedlist>
+<listitem><code>-v</code>, <code>--version</code> — show DCP-o-matic version</listitem>
+<listitem><code>-h</code>, <code>--help</code> — show this help</listitem>
+<listitem><code>-n</code>, <code>--name <name></code> — film name</listitem>
+<listitem><code>-t</code>, <code>--template <name></code> — template name</listitem>
+<listitem><code>-e</code>, <code>--encrypt</code> — make an encrypted DCP</listitem>
+<listitem><code>-c</code>, <code>--dcp-content-type <type></code> — FTR, SHR, TLR, TST, XSN, RTG, TSR, POL, PSA or ADV</listitem>
+<listitem><code>-f</code>, <code>--dcp-frame-rate <rate></code> — set DCP video frame rate (otherwise guessed from content)</listitem>
+<listitem><code>--container-ratio <ratio></code> — 119, 133, 137, 138, 166, 178, 185 or 239</listitem>
+<listitem><code>--content-ratio <ratio></code> — 119, 133, 137, 138, 166, 178, 185 or 239</listitem>
+<listitem><code>-s</code>, <code>--still-length <n></code> — number of seconds that still content should last</listitem>
+<listitem><code>--standard <standard></code> — SMPTE or interop (default SMPTE)</listitem>
+<listitem><code>--no-use-isdcf-name</code> — do not use an ISDCF name; use the specified name unmodified</listitem>
+<listitem><code>--no-sign</code> — do not sign the DCP</listitem>
+<listitem><code>--config <dir></code> — directory containing config.xml and cinemas.xml</listitem>
+<listitem><code>--fourk</code> — make a 4K DCP rather than a 2K one</listitem>
+<listitem><code>-o</code>, <code>--output <dir></code> — output directory</listitem>
+<listitem><code>--threed</code> — make a 3D DCP</listitem>
+<listitem><code>--j2k-bandwidth <Mbit/s></code> — J2K bandwidth in Mbit/s</listitem>
+<listitem><code>--left-eye</code> — next piece of content is for the left eye</listitem>
+<listitem><code>--right-eye</code> — next piece of content is for the right eye</listitem>
+</itemizedlist>
+</para>
\ No newline at end of file
--- /dev/null
+<para>
+<itemizedlist>
+<listitem><code>-h</code>, <code>--help</code> — show this help</listitem>
+<listitem><code>-o</code>, <code>--output</code> — output file or directory</listitem>
+<listitem><code>-K</code>, <code>--filename-format</code> — filename format for KDMs</listitem>
+<listitem><code>-Z</code>, <code>--container-name-format</code> — filename format for ZIP containers</listitem>
+<listitem><code>-f</code>, <code>--valid-from</code> — valid from time (in local time zone of the cinema) (e.g. “2013-09-28 01:41:51”) or “now”</listitem>
+<listitem><code>-t</code>, <code>--valid-to</code> — valid to time (in local time zone of the cinema) (e.g. “2014-09-28 01:41:51”)</listitem>
+<listitem><code>-d</code>, <code>--valid-duration</code> — valid duration (e.g. “1 day”, “4 hours”, “2 weeks”)</listitem>
+<listitem><code>-F</code>, <code>--formulation</code> — modified-transitional-1, multiple-modified-transitional-1, dci-any or dci-specific [default modified-transitional-1]</listitem>
+<listitem><code>-a</code>, <code>--disable-forensic-marking-picture</code> — disable forensic marking of pictures essences</listitem>
+<listitem><code>-a</code>, <code>--disable-forensic-marking-audio</code> — disable forensic marking of audio essences (optionally above a given channel, e.g 12)</listitem>
+<listitem><code>-z</code>, <code>--zip</code> — ZIP each cinema's KDMs into its own file</listitem>
+<listitem><code>-v</code>, <code>--verbose</code> — be verbose</listitem>
+<listitem><code>-c</code>, <code>--cinema</code> — specify a cinema, either by name or email address</listitem>
+<listitem><code>-S</code>, <code>--screen</code> — screen description</listitem>
+<listitem><code>-C</code>, <code>--certificate</code> — file containing projector certificate</listitem>
+<listitem><code>-T</code>, <code>--trusted-device</code> — file containing a trusted device's certificate</listitem>
+<listitem><code>--list-cinemas</code> — list known cinemas from the DCP-o-matic settings</listitem>
+<listitem><code>--list-dkdm-cpls</code> — list CPLs for which DCP-o-matic has DKDMs</listitem>
+</itemizedlist>
+</para>
\ No newline at end of file
#!/bin/bash
+cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+
export LD_LIBRARY_PATH=build/src/lib:/home/c.hetherington/lib:$LD_LIBRARY_PATH:build/src
if [ "$1" == "--debug" ]; then
shift