Commit f75c5962 authored by Mathieu Giraud's avatar Mathieu Giraud

algo/create-git-version-h.sh: do not complain when the .h file is not present

This is the case when compiling Vidjil from a fresh clone.
parent b6c60035
......@@ -3,6 +3,8 @@
GITV_H=git-version.h
GITV_H_TMP=git-version.h.tmp
touch ${GITV_H}
git log -1 --pretty=format:'#define GIT_VERSION "%h (%cd)"' --date=short --abbrev-commit > ${GITV_H_TMP} 2> /dev/null
# Replace the file only when the new file is different
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment