Below is the file 'addfile' from this revision. You can also download the file.
#!/bin/sh # Takes $MONOTONE, $DB and $ROOT from env. # for some reason just piping won't work... (cd $ROOT && $MONOTONE auto get_file $1 ) > tmpfile $MONOTONE -d $DB fload < tmpfile