diff options
author | Loïc Hoguin <[email protected]> | 2015-05-15 15:14:56 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-15 15:14:56 +0300 |
commit | a013d7202c5fce11e1458b58ce5881bf439884b2 (patch) | |
tree | 9ca6dcaaf6c46b901d942dd3ebe76063d4f74703 /Makefile | |
parent | 273287ac756fdb20547b87388890478c2186ac27 (diff) | |
parent | 629d418a837f903b63f1ad30c31197cc208f7bae (diff) | |
download | erlang.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-- | Makefile | 4 |
1 files changed, 3 insertions, 1 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 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 |