Closed nponeccop closed 9 years ago
Maybe with a format change I could also use this script to generate commit messages.
I parse version control diffs of cblrepo.db
for that. I use a very coarse approach of
hg diff cblrepo.db | cut -c 1-77 | grep -vE "^([ @]|\+\+\+|---)" | \
cut -d \" --output-delimiter=' ' -f 1,2,4,9
but jshon
tool can be used for precise JSON parsing from shell if needed.
https://gist.github.com/nponeccop/94ad3aa0140634a287c9
It is modelled after
yaourt -Su
, but without colors and with two additional categories which should be empty until something bad happens to upstream:It's example output,
wai
isn't actually dropped fromcore
:)/bin/printf
can be used instead ofcolumn
to get consistent formatting across categories. And pacman -Sl can be used as version source instead of upstreamcblrepo.db
or in addition to them to provide extra sanity checks.Feel free to put to
contrib/
if you don't find it useful for yourself.