2 echo "# Automatically generated on " $
(date) > version_info
3 echo "set(AESALON_MAJOR_VERSION 0)" >> version_info
4 echo "set(AESALON_MINOR_VERSION 0)" >> version_info
5 echo "set(AESALON_PATCHLEVEL 0)" >> version_info
7 git describe
--tags --abbrev=0 --match 'version_*' |
awk -F '_' '{print $2}' |
awk -F '.' '{ print "set(AESALON_MAJOR_VERSION " $1 ")\nset(AESALON_MINOR_VERSION " $2 ")\nset(AESALON_PATCHLEVEL " $3 ")" }' >> version_info