summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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 $@