diff options
author | Andreas Stenius <andreas.stenius@svenskaspel.se> | 2014-12-21 22:58:56 +0100 |
---|---|---|
committer | Andreas Stenius <andreas.stenius@svenskaspel.se> | 2015-01-04 23:23:48 +0100 |
commit | 629d418a837f903b63f1ad30c31197cc208f7bae (patch) | |
tree | fbd9ef09234f6a34e9303532e433161cd7151dcc | |
parent | 0f4fbea3715d07ab6e88e1718c997ce5befea538 (diff) | |
download | erlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.tar.gz erlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.tar.bz2 erlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.zip |
Update version when building erlang.mk.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | erlang.mk | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -16,11 +16,13 @@ BUILD_CONFIG_FILE ?= $(CURDIR)/build.config BUILD_CONFIG = $(shell sed "s/\#.*//" $(BUILD_CONFIG_FILE)) ERLANG_MK = erlang.mk +ERLANG_MK_VERSION = $(shell git describe --tags --dirty) .PHONY: all all: pkg - awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) > $(ERLANG_MK) + awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) \ + | sed 's/^ERLANG_MK_VERSION = .*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' > $(ERLANG_MK) pkg: cat packages.v2.tsv | awk 'BEGIN { FS = "\t" }; { print $$1 "\t" $$3 "\t" $$5 "\t" $$6 }' > packages.v1.tsv @@ -14,7 +14,7 @@ .PHONY: all deps app rel docs tests clean distclean help erlang-mk -ERLANG_MK_VERSION = 1 +ERLANG_MK_VERSION = 1.2.0-37-g5fef667-dirty # Core configuration. |