diff options
author | Patrick 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) |
commit | 5ef50ecc733be2c3f631f92fa9a82786a9f5deb1 (patch) | |
tree | 33c3ff9adb7ddef744a01f3fee25b4ca5d19a9bf | |
parent | 85a865a96e9156ac973e81a070cc1fe744dbc432 (diff) |
build: Set version string
-rwxr-xr-x | build | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 $@ |