]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Fix compilation on Windows
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 11:18:51 +0000 (12:18 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 11:18:51 +0000 (12:18 +0100)
Windows do not have sed, which is needed for release target. We do not
plan to do releases on Windows so disable the affected line on Windows.

common.mk

index 055d3020babcd6df7f8ef3778e06f3b38ff2a037..1f71faaf302957bc5ed129f037088119ab724b50 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -28,7 +28,9 @@ endif
 
 RELEASE_COMMIT = HEAD
 RELEASE_PREFIX ?= prefix
+ifneq ($(OS),Windows_NT)
 RELEASE_VERSION := $(shell git describe --always $(RELEASE_COMMIT)|sed -e "s/^[-a-zA-Z_]*//")
+endif
 RELEASE_BASENAME = $(RELEASE_PREFIX)-$(RELEASE_VERSION)
 
 .PHONY: $(RELEASE_BASENAME).zip