summaryrefslogtreecommitdiff
path: root/bin/make-version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/make-version.sh')
-rw-r--r--bin/make-version.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/make-version.sh b/bin/make-version.sh
new file mode 100644
index 0000000000..3be14353cb
--- /dev/null
+++ b/bin/make-version.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#shift;
+if test "x$1" = x;
+then
+ versionfile="VERSION"
+else
+ versionfile=$1;
+fi
+
+cat $versionfile| sed 's/#.*$//g'|sed 's/\([^ ]*\)[\t ]*=[ \t]*\([^ ]*\)$/#define \1 \"\2\"/g'
+echo
+