summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-02-06 14:56:17 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-02-06 14:56:29 -0800
commit12a3311954f3533b6fb02b404ff81401d9d8e390 (patch)
tree9b3029237bd1a98fffa12fd3428cc8b146457fde /sys-kernel/genkernel
parentnet-misc/grive: version bump (bug #573910) (diff)
downloadgentoo-12a3311954f3533b6fb02b404ff81401d9d8e390.tar.gz
gentoo-12a3311954f3533b6fb02b404ff81401d9d8e390.tar.bz2
gentoo-12a3311954f3533b6fb02b404ff81401d9d8e390.zip
sys-kernel/genkernel: be clearer with genkernel git versions.
Package-Manager: portage-2.2.27
Diffstat (limited to 'sys-kernel/genkernel')
-rw-r--r--sys-kernel/genkernel/genkernel-9999.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild
index 86ff46674846..77d5d2294a4e 100644
--- a/sys-kernel/genkernel/genkernel-9999.ebuild
+++ b/sys-kernel/genkernel/genkernel-9999.ebuild
@@ -87,6 +87,9 @@ src_unpack() {
src_prepare() {
if [[ ${PV} == 9999* ]] ; then
+ einfo "Updating version tag"
+ GK_V=$(git describe --tags)
+ sed "/^GK_V/s,=.*,='${GK_V}',g" -i "${S}"/genkernel
einfo "Producing ChangeLog from Git history..."
pushd "${S}/.git" >/dev/null || die
git log > "${S}"/ChangeLog || die