From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: commit script
Date: Sat, 2 Jan 2010 22:32:06 +0100 [thread overview]
Message-ID: <20100102213206.GA23735@thorin> (raw)
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
Hi,
I made this script for my own use. It automatically reads the latest entry
in ChangeLog and uses it as log to make a commit.
Carles said he wanted a copy, but I figured it could be useful to others, so
here you are.
--
Robert Millan
"Be the change you want to see in the world" -- Gandhi
[-- Attachment #2: commit-bzr-with-changelog --]
[-- Type: text/plain, Size: 378 bytes --]
#!/bin/bash -e
tmp=$(mktemp)
trap "rm -f ${tmp}" EXIT
st=0
while read -r line ; do
case "${line}" in
2*)
if [ "${st}" = 0 ] ; then
st=1
else
break
fi
;;
*)
echo -en "\t"
;;
esac
echo "${line}"
done < ChangeLog > ${tmp}
cat ${tmp}
bzr st $@
echo -e "\nPress enter to proceed"
read
bzr ci --file=${tmp} $@
exit 0
reply other threads:[~2010-01-02 21:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100102213206.GA23735@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.