summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 02:37:37 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 02:37:37 (EDT)
commit5ef50ecc733be2c3f631f92fa9a82786a9f5deb1 (patch)
tree33c3ff9adb7ddef744a01f3fee25b4ca5d19a9bf
parent85a865a96e9156ac973e81a070cc1fe744dbc432 (diff)
build: Set version string
-rwxr-xr-xbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/build b/build
index d156e02..fdb2f9c 100755
--- a/build
+++ b/build
@@ -2,11 +2,14 @@
include ../source.mk
+version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
+ sed 's/^.*+git\(....\)\(..\)\(..\)\.\([0-9a-f]*\).*$$/\4 (\1-\2-\3)/')
+
nop:
build:
(cd src && cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \
- -D STATIC_UBOX:BOOL=ON .)
+ -D STATIC_UBOX:BOOL=ON -D VERSION:STRING="$(version)" .)
oh-autobuild
touch $@