File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DATAPLANEAPI_PATH? =$(shell pwd)
2+ ifeq ($(wildcard .git) ,)
3+ GIT_REPO? = unknown
4+ GIT_HEAD_COMMIT =unknown
5+ GIT_LAST_TAG = unknown
6+ GIT_TAG_COMMIT = unknown
7+ GIT_MODIFIED1 = unknown
8+ GIT_MODIFIED2 = unknown
9+ else
210GIT_REPO? =$(shell git config --get remote.origin.url)
311GIT_HEAD_COMMIT =$(shell git rev-parse --short HEAD)
412GIT_LAST_TAG =$(shell git describe --abbrev=0 --tags)
513GIT_TAG_COMMIT =$(shell git rev-parse --short ${GIT_LAST_TAG})
614GIT_MODIFIED1 =$(shell git diff "${GIT_HEAD_COMMIT}" "${GIT_TAG_COMMIT}" --quiet || echo .dev)
715GIT_MODIFIED2 =$(shell git diff --quiet || echo .dirty)
16+ endif
817GIT_MODIFIED =${GIT_MODIFIED1}${GIT_MODIFIED2}
918SWAGGER_VERSION =${shell curl -s https://raw.githubusercontent.com/haproxytech/client-native/master/Makefile | grep SWAGGER_VERSION -m 1 | awk -F"=" '{print $$2}'}
1019BUILD_DATE =$(shell date -u '+% Y-% m-% dT% H:% M:% SZ')
You can’t perform that action at this time.
0 commit comments