gcc 4.1.2 conveniently saves the version number in a separate file.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20319 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-03-04 04:47:55 +00:00
parent 30589be58b
commit 5ca2f7aa8c

View File

@ -54,8 +54,7 @@ gccSourceDir=$buildToolsDir/gcc
# get gcc version
gccVersion=$(grep "const char version_string" $gccSourceDir/gcc/version.c \
| sed -e 's@.*"\(.*\)".*@\1@')
gccVersion=$(cat $gccSourceDir/gcc/BASE-VER)
if [ -z "$gccVersion" ]; then
echo "Failed to find out gcc version." >&2