Browse Source

use git plumbing to determine branch and commit IDs

closes #596

Change-Id: I0c5294215a790e1b7d48f61e1e77964a63d42eb7
changes/85/23185/1
Richard Fuchs 7 years ago
parent
commit
b4cac090f8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      kernel-module/Makefile
  2. +1
    -1
      lib/lib.Makefile

+ 1
- 1
kernel-module/Makefile View File

@ -9,7 +9,7 @@ ifeq ($(RTPENGINE_VERSION),)
ifneq ($(DPKG_PRSCHNGLG),)
DPKG_PRSCHNGLG=$(shell dpkg-parsechangelog -l$(DEB_CHANGELOG) | awk '/^Version: / {print $$2}')
endif
GIT_BR_COMMIT=$(shell git branch --no-color --no-column -v 2> /dev/null | awk '/^\*/ {OFS="-"; print "git", $$2, $$3}')
GIT_BR_COMMIT=git-$(shell cd $(M) && git rev-parse --abbrev-ref --symbolic-full-name HEAD)-$(shell cd $(M) && git rev-parse --short HEAD)
ifneq ($(DPKG_PRSCHNGLG),)
RTPENGINE_VERSION+=$(DPKG_PRSCHNGLG)


+ 1
- 1
lib/lib.Makefile View File

@ -10,7 +10,7 @@ ifeq ($(RTPENGINE_VERSION),)
ifneq ($(DPKG_PRSCHNGLG),)
DPKG_PRSCHNGLG=$(shell dpkg-parsechangelog -l$(RTPENGINE_ROOT_DIR)/debian/changelog | awk '/^Version: / {print $$2}')
endif
GIT_BR_COMMIT=$(shell git branch --no-color --no-column -v 2> /dev/null | awk '/^\*/ {OFS="-"; print "git", $$2, $$3}')
GIT_BR_COMMIT=git-$(shell git rev-parse --abbrev-ref --symbolic-full-name HEAD)-$(shell git rev-parse --short HEAD)
ifneq ($(DPKG_PRSCHNGLG),)
RTPENGINE_VERSION+=$(DPKG_PRSCHNGLG)


Loading…
Cancel
Save