1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 17:27:31 +00:00
borg/docs/update_usage.sh

13 lines
433 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 check create delete extract info init list mount prune verify; do
2013-07-31 18:51:01 +00:00
FILENAME="usage/$cmd.rst.inc"
2013-08-04 19:23:12 +00:00
LINE=`echo -n attic $cmd | tr 'a-z- ' '-'`
2013-08-04 20:50:34 +00:00
echo -e ".. _attic_$cmd:\n" > $FILENAME
echo -e "attic $cmd\n$LINE\n::\n\n" >> $FILENAME
2013-07-31 18:51:01 +00:00
attic $cmd -h | sed -e 's/^/ /' >> $FILENAME
2013-08-04 19:23:12 +00:00
echo -e "\nDescription\n~~~~~~~~~~~\n\n" >> $FILENAME
2013-07-05 10:32:56 +00:00
done