borg/docs/update_usage.sh

10 lines
282 B
Bash
Raw Normal View History

2013-07-05 10:32:56 +00:00
#!/usr/bin/bash
2013-07-31 18:51:01 +00:00
if [ ! -d usage ]; then
mkdir usage
fi
for cmd in change-passphrase create delete extract info init list mount prune verify; do
FILENAME="usage/$cmd.rst.inc"
echo -e "Synopsis\n~~~~~~~~\n::\n" > $FILENAME
attic $cmd -h | sed -e 's/^/ /' >> $FILENAME
2013-07-05 10:32:56 +00:00
done