The user adds an annexed file that is computed by the program by running
a command like this:
- git-annex addcomputed --with myremote \
+ git-annex addcomputed --to myremote \
--input raw=file.raw --value passes=10 \
--output photo=file.jpeg
list inputs and outputs, and also lets them reject invalid inputs and
outputs.
-In this mode, the program is run a paramter "list".
+In this mode, the program is run with a "list" parameter.
It should output lines, in the form:
INPUT[?] Name Description
and "VALUE" for all other input values. Use "INPUT?" and "VALUE?"
for optional inputs and values.
+The program can also optionally output a "REPRODUCIBLE" line.
+That indicates that the results of its computations are
+expected to be bit-for-bit reproducible.
+That makes `git-annex addcomputed` behave as if the `--reproducible`
+option is set.
+
An example `git-annex-compute-foo` shell script follows:
#!/bin/sh
echo "INPUT raw A photo in RAW format"
echo "VALUE? passes Number of passes"
echo "OUTPUT photo Computed JPEG"
+ echo "REPRODUCIBLE"
exit 0
fi
if [ -z "$ANNEX_COMPUTE_VALUE_passes" ]; then