diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-04-28 04:00:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-04-28 04:00:22 +0000 |
commit | 6d22061121fb5dfe773ae7e589e9e85f8a42baa4 (patch) | |
tree | 32dfb496513ca425b5c24dd1240fa3d7df488e7f /sys-devel/binutils-config | |
parent | Re-added ~sparc keyword as it went missing. (diff) | |
download | gentoo-2-6d22061121fb5dfe773ae7e589e9e85f8a42baa4.tar.gz gentoo-2-6d22061121fb5dfe773ae7e589e9e85f8a42baa4.tar.bz2 gentoo-2-6d22061121fb5dfe773ae7e589e9e85f8a42baa4.zip |
include cvs rev in --version display
(Portage version: 2.1_pre9-r4)
Diffstat (limited to 'sys-devel/binutils-config')
-rwxr-xr-x | sys-devel/binutils-config/files/binutils-config-1.8 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.8 b/sys-devel/binutils-config/files/binutils-config-1.8 index ae1eb5a06f2e..6fc5c5d58e7c 100755 --- a/sys-devel/binutils-config/files/binutils-config-1.8 +++ b/sys-devel/binutils-config/files/binutils-config-1.8 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.15 2006/04/21 23:51:07 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.16 2006/04/28 04:00:22 vapier Exp $ # Format of /etc/env.d/binutils/: # config-TARGET: CURRENT=version for TARGET @@ -306,9 +306,11 @@ while [[ $# -gt 0 ]] ; do exit 0 ;; -V|--version) - cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.15 2006/04/21 23:51:07 vapier Exp $" + cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.16 2006/04/28 04:00:22 vapier Exp $" cvsver=${cvsver##*binutils-config-} - echo "binutils-config-${cvsver%%,v *}" + bver=${cvsver%%,v *} + cvsver=${cvsver#* } + echo "binutils-config-${bver} (r${cvsver%% *})" exit 0 ;; --amd64|--arm|--mips|--x86) |