summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-07 00:30:25 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-07 00:30:25 +0000
commit4254b71db1dec8a36be544cacde946bf658a4862 (patch)
tree13e3d9c387eb50b24a12115e5cf76ba3c4971c1e /sys-devel
parentAdding missing dependency on freetype which showed itself when some users tri... (diff)
downloadgentoo-2-4254b71db1dec8a36be544cacde946bf658a4862.tar.gz
gentoo-2-4254b71db1dec8a36be544cacde946bf658a4862.tar.bz2
gentoo-2-4254b71db1dec8a36be544cacde946bf658a4862.zip
make version reporting automagic
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/binutils-config/files/binutils-config-1.67
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.6 b/sys-devel/binutils-config/files/binutils-config-1.6
index 041bb6a14d12..edc89ffb7c42 100755
--- a/sys-devel/binutils-config/files/binutils-config-1.6
+++ b/sys-devel/binutils-config/files/binutils-config-1.6
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2004 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.6,v 1.4 2005/01/07 00:27:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.6,v 1.5 2005/01/07 00:30:25 vapier Exp $
# Format of /etc/env.d/binutils/:
# config-TARGET: CURRENT=version for TARGET
@@ -263,8 +263,9 @@ while [[ $# -gt 0 ]] ; do
exit 0
;;
-v|--version)
- cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.6,v 1.4 2005/01/07 00:27:04 vapier Exp $"
- echo "binutils-config-1.6"
+ cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.6,v 1.5 2005/01/07 00:30:25 vapier Exp $"
+ cvsver=${cvsver##*binutils-config-}
+ echo "binutils-config-${cvsver%%,v *}"
exit 0
;;
-*)