Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af514a1
)
PUD: always generate a GIT_SHA define in version.h
author
Ferry Huberts
<f.huberts@mindef.nl>
Mon, 10 Oct 2011 11:35:17 +0000
(13:35 +0200)
committer
Ferry 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
patch
|
blob
|
history
diff --git
a/lib/pud/scripts/makeVersionH
b/lib/pud/scripts/makeVersionH
index
70ee4ef
..
cae02fb
100755
(executable)
--- a/
lib/pud/scripts/makeVersionH
+++ b/
lib/pud/scripts/makeVersionH
@@
-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