summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-09-06 08:28:18 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-09-06 08:28:18 +0100
commit8cd0c018d26ed6c61ee499b8673ef19266be1aa9 (patch)
treeef5a16ea574741ec1932fb68f4f89aa03708ae85
parentREADME: clarify status of /etc/env.d/gcc/.NATIVE (diff)
downloadgcc-config-8cd0c018d26ed6c61ee499b8673ef19266be1aa9.tar.gz
gcc-config-8cd0c018d26ed6c61ee499b8673ef19266be1aa9.tar.bz2
gcc-config-8cd0c018d26ed6c61ee499b8673ef19266be1aa9.zip
gcc-config: drop /etc/env.d/gcc/config migration code
/etc/env.d/gcc/config migraion was enabled 7 years ago. Let's assume everyone migrated by now. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xgcc-config14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc-config b/gcc-config
index 99489f9..21d54c1 100755
--- a/gcc-config
+++ b/gcc-config
@@ -1017,20 +1017,6 @@ get_chost
&& : ${CTARGET:=${CC_COMP:-${CHOST}}} \
|| : ${CTARGET:=${CHOST}}
-# Do migration of old files
-if [[ -e ${GCC_ENV_D}/config ]] ; then
- (
- unset CURRENT
- . "${GCC_ENV_D}"/config
- if [[ ${CURRENT} == ${CTARGET}-* ]] ; then
- mv "${GCC_ENV_D}"/config "${GCC_ENV_D}"/config-${CTARGET} || exit 1
- else
- # who knows; force a refresh by punting it
- rm -f "${GCC_ENV_D}"/config || exit 1
- fi
- ) || die "could not get rid of old ${GCC_ENV_D}/config"
-fi
-
if [[ -z ${CC_COMP} ]] ; then
CC_COMP=$(get_current_profile)
if [[ $? -ne 0 ]] ; then