diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-04-21 12:49:18 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-04-21 12:50:32 -0400 |
commit | 187ec2310c21c0c96812dec5e2d2a13172492ca9 (patch) | |
tree | 69cc4b6eaeac2022d0156a6b34a6ad98b95cdee3 /sys-kernel/genkernel | |
parent | net-firewall/pglinux: version bump 2.3.1 bug #580588 (diff) | |
download | gentoo-187ec2310c21c0c96812dec5e2d2a13172492ca9.tar.gz gentoo-187ec2310c21c0c96812dec5e2d2a13172492ca9.tar.bz2 gentoo-187ec2310c21c0c96812dec5e2d2a13172492ca9.zip |
sys-kernel/genkernel: clean up automatic git version
Drop the leading "v" to match the version style we use in releases.
Always add a "-git" suffix so we know it's the 9999 ebuild even if the
git repo happens to be the same as the latest release.
Diffstat (limited to 'sys-kernel/genkernel')
-rw-r--r-- | sys-kernel/genkernel/genkernel-9999.ebuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild index f6cd4fc69599..2a5ada30eb48 100644 --- a/sys-kernel/genkernel/genkernel-9999.ebuild +++ b/sys-kernel/genkernel/genkernel-9999.ebuild @@ -40,7 +40,7 @@ then SRC_URI="${COMMON_URI}" else inherit bash-completion-r1 eutils - SRC_URI="mirror://gentoo/${P}.tar.bz2 + SRC_URI="mirror://gentoo/${P}.tar.xz ${COMMON_URI}" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" fi @@ -87,7 +87,7 @@ src_unpack() { src_prepare() { if [[ ${PV} == 9999* ]] ; then einfo "Updating version tag" - GK_V=$(git describe --tags) + GK_V="$(git describe --tags | sed 's:^v::')-git" sed "/^GK_V/s,=.*,='${GK_V}',g" -i "${S}"/genkernel einfo "Producing ChangeLog from Git history..." pushd "${S}/.git" >/dev/null || die |