aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-15 15:14:56 +0300
committerLoïc Hoguin <[email protected]>2015-05-15 15:14:56 +0300
commita013d7202c5fce11e1458b58ce5881bf439884b2 (patch)
tree9ca6dcaaf6c46b901d942dd3ebe76063d4f74703 /Makefile
parent273287ac756fdb20547b87388890478c2186ac27 (diff)
parent629d418a837f903b63f1ad30c31197cc208f7bae (diff)
downloaderlang.mk-a013d7202c5fce11e1458b58ce5881bf439884b2.tar.gz
erlang.mk-a013d7202c5fce11e1458b58ce5881bf439884b2.tar.bz2
erlang.mk-a013d7202c5fce11e1458b58ce5881bf439884b2.zip
Merge branch 'update-version' of https://github.com/kaos/erlang.mk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc3dd65..2941f08 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 check
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