Line 0
Link Here
|
0 |
- |
1 |
#!/bin/bash |
|
|
2 |
# Copyright 1999-2009 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
5 |
self=${0##*/} |
6 |
lock=${T}/.portage-warned-${self}-use |
7 |
|
8 |
if [[ ! -e ${lock} ]]; then |
9 |
exec 10> "${lock}" |
10 |
|
11 |
if flock -n -x 10; then |
12 |
case "${self}" in |
13 |
cc|gcc) var=CC;; |
14 |
c++|g++) var=CXX;; |
15 |
*) var='(unknown)';; |
16 |
esac |
17 |
|
18 |
eqawarn "QA warning: package does not respect ${var} variable" |
19 |
eqawarn " (detected direct call to ${self})" |
20 |
fi |
21 |
fi |
22 |
|
23 |
nextbin=$(which -a "${self}" | head -n 2 | tail -n 1) |
24 |
|
25 |
exec "${nextbin}" "${@}" |