2014-02-16 12:40:01 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
version=$(git describe --tags --always --dirty 2>/dev/null)
|
|
|
|
if [ ! -e ".git" ] || [ -z $version ]
|
|
|
|
then
|
2017-05-10 07:54:05 -04:00
|
|
|
version=$(grep "^VERSION=" makefile_include.mk | sed "s/.*=//")
|
2014-02-16 12:40:01 -05:00
|
|
|
fi
|
|
|
|
echo "Testing version:" $version
|
|
|
|
#grep "VERSION=" makefile | perl -e "@a = split('=', <>); print @a[1];"`
|
|
|
|
|
|
|
|
# get uname
|
|
|
|
echo "uname="`uname -a`
|
|
|
|
|
|
|
|
# get gcc name
|
2014-05-05 04:49:29 -04:00
|
|
|
if [ -z ${CC} ]
|
|
|
|
then
|
2017-02-24 14:50:37 -05:00
|
|
|
CC="gcc"
|
2014-05-05 04:49:29 -04:00
|
|
|
fi
|
|
|
|
echo "${CC}="`${CC} -dumpversion`
|
2014-02-16 12:40:01 -05:00
|
|
|
echo
|