aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-20 17:32:44 -0400
committerMike Frysinger <vapier@gentoo.org>2012-03-20 17:32:44 -0400
commit82352d02d6614e621a788d96136427140831dd9a (patch)
treecd3ec0c3b8eefa1e80ed4288e1061ec6d0d0bbe9 /gcc-config
parentadd a makefile (diff)
downloadgcc-config-82352d02d6614e621a788d96136427140831dd9a.tar.gz
gcc-config-82352d02d6614e621a788d96136427140831dd9a.tar.bz2
gcc-config-82352d02d6614e621a788d96136427140831dd9a.zip
drop cvs tags
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config13
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc-config b/gcc-config
index aa42397..c43d7f6 100755
--- a/gcc-config
+++ b/gcc-config
@@ -1,7 +1,6 @@
#!/bin/bash
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.5.1,v 1.2 2012/03/15 01:16:44 vapier Exp $
# Format of /etc/env.d/gcc/:
# config-TARGET: CURRENT=version for TARGET
@@ -39,6 +38,8 @@ if ! type -P tac >/dev/null ; then
tac() { ${SED} -e '1!G;h;$!d' "$@" ; }
fi
+PV="@PV@"
+[[ ${PV} == @*@ ]] && PV="git"
GENTOO_LIBDIR="@GENTOO_LIBDIR@"
[[ ${GENTOO_LIBDIR} == @*@ ]] && GENTOO_LIBDIR="lib"
@@ -647,15 +648,7 @@ for x in "$@" ; do
usage 0
;;
-V|--version)
- unset RCSfile Revision Date
- rcsfile="$RCSfile: gcc-config-1.5.1,v $"
- rcsfile=${rcsfile#: }
- rcsfile=${rcsfile%,v*}
- cvsrev="$Revision: 1.2 $"
- cvsrev=${cvsrev#: }
- cvsdate="$Date: 2012/03/15 01:16:44 $"
- cvsdate=${cvsdate#: }
- echo "${rcsfile} (r${cvsrev% *} @ ${cvsdate% *})"
+ echo "${argv0}: @PV@"
exit 0
;;
-*)