basak/glacier-cli — pull request #11 by petertodd (2012-11-13 09:04:58+00:00)
Title: Version #2 of the empty archive handling

As discussed via email.

Usage:

glacier-store-hook = glacier-annex-hook.py /path/to/glacier.py vault-name store \"$ANNEX_KEY\" \"$ANNEX_FILE\"
glacier-retrieve-hook = glacier-annex-hook.py /path/to/glacier.py vault-name retrieve \"$ANNEX_KEY\" \"$ANNEX_FILE\"
glacier-remove-hook = glacier-annex-hook.py /path/to/glacier.py vault-name remove \"$ANNEX_KEY\"
glacier-checkpresent-hook = glacier-annex-hook.py /path/to/glacier.py vault-name checkpresent \"$ANNEX_KEY\"

I'm thinking it'd probably be easier if glacier.py is assumed to be on PATH, without having to specify a path to it at all, thoughts? Either that, or still require it to be specified, and replace the execv() calls with the execvp() version that uses PATH for lookup. Thus the case with it on PATH would be just glacier.py