git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thermal: hwmon: Properly report critical temperature in sysfs
[pandora-kernel.git]
/
scripts
/
gcc-version.sh
diff --git
a/scripts/gcc-version.sh
b/scripts/gcc-version.sh
index
debecb5
..
7f2126d
100644
(file)
--- a/
scripts/gcc-version.sh
+++ b/
scripts/gcc-version.sh
@@
-22,10
+22,10
@@
if [ ${#compiler} -eq 0 ]; then
exit 1
fi
exit 1
fi
-MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1)
-MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
+MAJOR=$(echo __GNUC__ | $compiler -E -x
c - | tail -n 1)
+MINOR=$(echo __GNUC_MINOR__ | $compiler -E -x
c - | tail -n 1)
if [ "x$with_patchlevel" != "x" ] ; then
if [ "x$with_patchlevel" != "x" ] ; then
- PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -xc - | tail -n 1)
+ PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -x
c - | tail -n 1)
printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL
else
printf "%02d%02d\\n" $MAJOR $MINOR
printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL
else
printf "%02d%02d\\n" $MAJOR $MINOR