I2C toy code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 line
420 B

  1. #!/bin/bash
  2. version=$(git describe --tags --always --dirty 2>/dev/null)
  3. if [ ! -e ".git" ] || [ -z $version ]
  4. then
  5. version=$(grep "^VERSION=" makefile_include.mk | sed "s/.*=//")
  6. fi
  7. echo "Testing version:" $version
  8. #grep "VERSION=" makefile | perl -e "@a = split('=', <>); print @a[1];"`
  9. # get uname
  10. echo "uname="`uname -a`
  11. # get gcc name
  12. if [ -z ${CC} ]
  13. then
  14. CC="gcc"
  15. fi
  16. echo "${CC}="`${CC} -dumpversion`
  17. echo