summaryrefslogtreecommitdiff
path: root/scripts/version
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/version')
-rwxr-xr-xscripts/version5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/version b/scripts/version
new file mode 100755
index 00000000..75cb06da
--- /dev/null
+++ b/scripts/version
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cat ledger.cc | \
+ grep "^const std::string version" | \
+ sed 's/const std::string version = "\([0-9.A-Za-z]*\)";/\1/'