1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00
borg/docs/update_usage.sh
2013-07-05 17:04:01 +02:00

7 lines
258 B
Bash
Executable file

#!/usr/bin/bash
echo -n > usage.rst
for cmd in init create extract delete prune verify change-passphrase; do
LINE=`echo -n darc $cmd | tr 'a-z ' '~'`
echo -e ".. _usage_darc_$cmd:\n\ndarc $cmd\n$LINE\n::\n" >> usage.rst
darc $cmd -h >> usage.rst
done