PUD: always generate a GIT_SHA define in version.h
authorFerry Huberts <f.huberts@mindef.nl>
Mon, 10 Oct 2011 11:35:17 +0000 (13:35 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Mon, 10 Oct 2011 11:35:17 +0000 (13:35 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
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