openAV-Luppp/version.sh
2013-11-14 17:32:51 +00:00

7 lines
206 B
Bash
Executable file

#!/bin/bash
# this file writes src/version.h from the git commit
echo "
#ifndef GIT_VERSION
#define GIT_VERSION \"`date +\"%d-%m-%Y\"` `git log --pretty=format:"%h" | head -n1`\"
#endif" > src/version.hxx