hledger/tools/pushdocs

18 lines
487 B
Plaintext
Raw Normal View History

2022-12-11 23:14:45 +03:00
#!/usr/bin/env bash
2022-12-12 04:31:40 +03:00
# pushdocs [MSG] - commit manuals with ";doc: MSG" prefix, then push to CI & master
2022-12-11 23:14:45 +03:00
set -e
MSG=";doc: $1"
2022-12-12 00:30:48 +03:00
DOCS=(hledger/hledger.m4.md hledger-ui/hledger-ui.m4.md hledger-web/hledger-web.m4.md)
2022-12-11 23:14:45 +03:00
2022-12-12 00:30:48 +03:00
git commit -uno -m "$MSG" "${DOCS[@]}" hledger-web/hledger-web.m4.md || true
push \
2022-12-11 23:14:45 +03:00
&& 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\
"