diff options
Diffstat (limited to 'libtomcrypt/printinfo.sh')
-rw-r--r-- | libtomcrypt/printinfo.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libtomcrypt/printinfo.sh b/libtomcrypt/printinfo.sh new file mode 100644 index 0000000..213af5b --- /dev/null +++ b/libtomcrypt/printinfo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +version=$(git describe --tags --always --dirty 2>/dev/null) +if [ ! -e ".git" ] || [ -z $version ] +then + version=$(grep "^VERSION=" makefile_include.mk | sed "s/.*=//") +fi +echo "Testing version:" $version +#grep "VERSION=" makefile | perl -e "@a = split('=', <>); print @a[1];"` + +# get uname +echo "uname="`uname -a` + +# get gcc name +if [ -z ${CC} ] +then + CC="gcc" +fi +echo "${CC}="`${CC} -dumpversion` +echo |