From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NRBa7-0001wu-GO for mharc-grub-devel@gnu.org; Sat, 02 Jan 2010 16:32:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRBa5-0001wI-59 for grub-devel@gnu.org; Sat, 02 Jan 2010 16:32:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRBa0-0001uL-Vd for grub-devel@gnu.org; Sat, 02 Jan 2010 16:32:16 -0500 Received: from [199.232.76.173] (port=50237 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRBa0-0001uD-FB for grub-devel@gnu.org; Sat, 02 Jan 2010 16:32:12 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:58420 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRBa0-0001nL-71 for grub-devel@gnu.org; Sat, 02 Jan 2010 16:32:12 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NRBZv-0004R4-9P for grub-devel@gnu.org; Sat, 02 Jan 2010 22:32:07 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NRBZu-0006Bi-Hy for grub-devel@gnu.org; Sat, 02 Jan 2010 22:32:06 +0100 Date: Sat, 2 Jan 2010 22:32:06 +0100 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20100102213206.GA23735@thorin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: commit script X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 21:32:17 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=commit-bzr-with-changelog #!/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 --45Z9DzgjV8m4Oswq--