aboutsummaryrefslogtreecommitdiff
path: root/ports.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ports.mk')
-rw-r--r--ports.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports.mk b/ports.mk
index 3149ffbe57..e195e01dfe 100644
--- a/ports.mk
+++ b/ports.mk
@@ -248,10 +248,13 @@ win32setup: $(EXECUTABLE)
# Special target to generate project files for various IDEs
# Mainly Win32-specific
#
+
+# The release branch is in form 'heads/branch-1-4-1', for this case
+# $CUR_BRANCH will be equal to '1', for the rest cases it will be empty
CUR_BRANCH := $(shell cd $(srcdir); git describe --all |cut -d '-' -f 4-)
ideprojects: devtools/create_project
-ifneq ($(VER_DIRTY), -dirty)
+ifeq ($(VER_DIRTY), -dirty)
$(error You have uncommitted changes)
endif
ifeq "$(CUR_BRANCH)" "heads/master"