tools/gpgtar: Handle '--directory' argument.
authorJustus Winter <justus@g10code.com>
Wed, 25 Nov 2015 17:29:22 +0000 (18:29 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 25 Nov 2015 17:29:22 +0000 (18:29 +0100)
commit127aba9a4d6c1aabb4a18a74b16d3bddc6eb5c54
treeacadf0ca51c1fdad8ea62e0e3864905f2968d04b
parent89e104eb38c3a6896892ff09db11cb1bae2bb0d3
tools/gpgtar: Handle '--directory' argument.

* tools/gpgtar-extract.c (gpgtar_extract): Only generate a directory
name if none is given via arguments.
* tools/gpgtar.c (enum cmd_and_opt_values): New constant.
(opts): Add argument.
(main): Parse argument.
* tools/gpgtar.h (opt): New field 'directory'.

Signed-off-by: Justus Winter <justus@g10code.com>
tools/gpgtar-extract.c
tools/gpgtar.c
tools/gpgtar.h