From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbL9W-00031F-Bz for qemu-devel@nongnu.org; Mon, 14 Sep 2015 00:14:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbL9S-0004Qj-Af for qemu-devel@nongnu.org; Mon, 14 Sep 2015 00:14:02 -0400 Date: Mon, 14 Sep 2015 14:12:20 +1000 From: David Gibson Message-ID: <20150914041220.GH2547@voom.fritz.box> References: <1442194575-8537-1-git-send-email-gwshan@linux.vnet.ibm.com> <1442194575-8537-4-git-send-email-gwshan@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzX0AQGjRQPusK/O" Content-Disposition: inline In-Reply-To: <1442194575-8537-4-git-send-email-gwshan@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v8 3/7] scripts: Submit changes while updating linux headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gavin Shan Cc: lvivier@redhat.com, peter.maydell@linaro.org, thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org --NzX0AQGjRQPusK/O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 14, 2015 at 11:36:11AM +1000, Gavin Shan wrote: > This submits changes with formatted commit log while updating Linux > headers using scripts/update-linux-headers.sh. >=20 > Signed-off-by: Gavin Shan Reviewed-by: David Gibson > --- > scripts/update-linux-headers.sh | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) >=20 > diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-heade= rs.sh > index 18daabe..a345632 100755 > --- a/scripts/update-linux-headers.sh > +++ b/scripts/update-linux-headers.sh > @@ -63,6 +63,34 @@ cp_virtio() { > fi > } > =20 > +submit_change() { > + from=3D$1 > + to=3D$2 > + if ! [ -e "$to/include/qemu-common.h" ]; then > + echo "$to not QEMU source directory, skip submitting changes" > + exit 3 > + fi > + > + version=3D$(make -C "$from" -s kernelversion) > + commit=3D$(git -C "$from" rev-parse --short HEAD) > + message=3D$(cat < +Synchronize Linux headers from kernel $version > + > +Synchronize the Linux headers from kernel version $version > +(commit $commit) > + > +This commit was created automatically by update-linux-headers.sh. > +EOF > +) > + > + if git -C "$to" commit -qa -m "$message" -s ; then > + echo "Changes submitted successfully" > + else > + echo "Failure submitting changes" > + exit 4 > + fi > +} > + > # This will pick up non-directories too (eg "Kconfig") but we will > # ignore them in the next loop. > ARCHLIST=3D$(cd "$linux/arch" && echo *) > @@ -132,3 +160,5 @@ cat <$output/include/standard-headers/linux/if_= ether.h > EOF > =20 > rm -rf "$tmpdir" > + > +submit_change "$linux" "$output" --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --NzX0AQGjRQPusK/O Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJV9kkkAAoJEGw4ysog2bOSA4EQANMFAJ/IUCkbqF87EKEwmiXU VgRkAVQISJRVh8URkJrBXaof7u8dNJveiWX4+QUT854c8UpGK6RrxrnDEtheyZP8 /1rSfxsGclHoDs5pf/N/Q+qltabblVHIlm8KycU1VaQXQjesFpUyCkPldEBjZwb5 TL4W128yzQys1eznsk21LaLcp/0R9w1hnYIgEKrki9Gk9TuSLrtKcMF0gc7D1Fz5 g7rTfR8sKnRNRHCLSRIyPFX3crpbodJrAr3ErPe7f0eZz+vMz2a1X/zR3vMj07Vj uwo9oBHAX+XsdbOZ72S/YMO+lIZkPFr38q0G3TuwwQqJa693p2/3E7ovnb/M1IfR acx7RQB67AWyWzmr3AI3L0ZhSNun5C06Ds6dD3QYmXpj39icSCOiSNZ76KNJE8he A3rv2/6fWMSmKg9CD9ucnoZ6D8OXE7hNV2cBLjshfM9YGYoov57z9ag1Nmza6z3d AsB9wPh24cnHRmSQG09BPXkGPUKd+xXi8MLlVUSsNxFLCh4uQZRJh0VNQI3dQ6xC WfFvp7QOv+qQJEgE68lio1VWnkQCSpJOiYWNJ6GCs8obHhTbrgRg0NcYRtvknim3 unzPHD3Q1v88HAvgaRe53sUWFgizznBW8XR/xmy2/hWADN9/Gpjj2TeytZhnNT6I n1M9SXD6bObfbg+2VnPX =4k5E -----END PGP SIGNATURE----- --NzX0AQGjRQPusK/O--