aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgcc-config13
-rw-r--r--wrapper.c3
2 files changed, 4 insertions, 12 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
;;
-*)
diff --git a/wrapper.c b/wrapper.c
index 2434f47..a2e7a92 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -1,7 +1,6 @@
/*
- * Copyright 1999-2011 Gentoo Foundation
+ * Copyright 1999-2012 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: gentoo-x86/sys-devel/gcc-config/files/wrapper-1.5.2.c,v 1.2 2011/06/18 18:46:23 vapier Exp $
* Author: Martin Schlemmer <azarah@gentoo.org>
* az's lackey: Mike Frysinger <vapier@gentoo.org>
*/