diff options
author | Jonas <himself@jonasgunz.de> | 2019-02-14 00:37:48 +0100 |
---|---|---|
committer | Jonas <himself@jonasgunz.de> | 2019-02-14 00:37:48 +0100 |
commit | d25296d03fdaeaadd002cd37171ef2b20695cf26 (patch) | |
tree | 866fea08dc95158c5eb2f54dcaebb80e64aaa2a6 | |
parent | ebf2e4812f39467eaf6ace9bfc9848f9e2d7ea3f (diff) | |
download | termgl-d25296d03fdaeaadd002cd37171ef2b20695cf26.tar.gz |
Makefile tweaks
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | test.cpp | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -46,7 +46,7 @@ genversion: @echo "#pragma once" >> version.h @echo "#define VERSION $(VERSION)" >> version.h @echo "#define PATCHLEVEL $(PATCHLEVEL)" >> version.h - @echo "#define BRANCH \"`git status -bs | grep '##'`\"" >> version.h + @echo "#define VERSTRING \"`git describe`\"" >> version.h @echo "#define DATE \"`date +'%d.%m.20%y'`\"" >> version.h @echo "#define TIME \"`date +'%H:%M:%S'`\"" >> version.h @@ -57,12 +57,8 @@ int main(int argc, char* argv[]) render.render(); - ver.drawPoint('v', {0,0}, true, _COL_WHITE); - ver.drawPoint(VERSION + 48, {1,0}, true, _COL_WHITE); - ver.drawPoint('.', {2,0}, true, _COL_WHITE); - ver.drawPoint(PATCHLEVEL + 48, {3,0}, true, _COL_WHITE); - ver.drawText(DATE, {32,0}, _COL_WHITE); - ver.drawText(BRANCH, {5,0}, _COL_WHITE); + ver.drawText(DATE, {20,0}, _COL_WHITE); + ver.drawText(VERSTRING, {0,0}, _COL_WHITE); int iver = handler.createObject(&ver); handler.moveObject(iver, {0,0}, _MOVE_ABSOLUTE); |