hledger/tools/pushdocs
2022-12-11 15:31:40 -10:00

18 lines
487 B
Bash
Executable File

#!/usr/bin/env bash
# pushdocs [MSG] - commit manuals with ";doc: MSG" prefix, then push to CI & master
set -e
MSG=";doc: $1"
DOCS=(hledger/hledger.m4.md hledger-ui/hledger-ui.m4.md hledger-web/hledger-web.m4.md)
git commit -uno -m "$MSG" "${DOCS[@]}" hledger-web/hledger-web.m4.md || true
push \
&& printf "Docs should be up to date momentarily:\n\
\n\
https://hledger.org/dev/hledger.html\n\
https://hledger.org/dev/hledger-ui.html\n\
https://hledger.org/dev/hledger-web.html\n\
"