From 5ef50ecc733be2c3f631f92fa9a82786a9f5deb1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 04 Apr 2019 02:37:37 -0400 Subject: build: Set version string --- 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 $@ -- cgit v0.9.1