* commit script
@ 2010-01-02 21:32 Robert Millan
0 siblings, 0 replies; only message in thread
From: Robert Millan @ 2010-01-02 21:32 UTC (permalink / raw)
To: grub-devel
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-02 21:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-02 21:32 commit script Robert Millan
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.