aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Stenius <[email protected]>2014-12-21 22:58:56 +0100
committerAndreas Stenius <[email protected]>2015-01-04 23:23:48 +0100
commit629d418a837f903b63f1ad30c31197cc208f7bae (patch)
treefbd9ef09234f6a34e9303532e433161cd7151dcc /Makefile
parent0f4fbea3715d07ab6e88e1718c997ce5befea538 (diff)
downloaderlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.tar.gz
erlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.tar.bz2
erlang.mk-629d418a837f903b63f1ad30c31197cc208f7bae.zip
Update version when building erlang.mk.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d7bb08d..300fb2c 100644
--- a/Makefile
+++ b/Makefile
@@ -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