PUD: always generate a GIT_SHA define in version.h
[olsrd.git] / lib / pud / scripts / makeVersionH
index 70ee4ef..cae02fb 100755 (executable)
@@ -18,11 +18,13 @@ cat > "${outfile}" << EOF
 #define PLUGIN_VER "${version}"
 EOF
 
-if [[ -n "${sha:-}" ]]; then
-  cat >> "${outfile}" << EOF
+if [[ -z "${sha:-}" ]]; then
+  sha="OLSRD_Unknown-g0000000"
+fi
+
+cat >> "${outfile}" << EOF
 #define GIT_SHA    "${sha}"
 EOF
-fi
 
 cat >> "${outfile}" << EOF