aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-07-14 21:52:53 -0400
committerRob Austein <sra@hactrn.net>2018-07-14 21:52:53 -0400
commit624bff7124831b90597122e868a9b4586af8d56d (patch)
treee8d5847015c870c47891ac99e8db8d5161f4eca7 /Makefile
parent38b90453bc26e73b827104219f1cfd014ea5f6ca (diff)
Fix generated Debian package names ("_" is illegal).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ccc61fd..3666b5f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ GIT_BRANCHES := $(filter-out HEAD,$(sort $(notdir $(shell git for-each-ref --fo
# other package names (constructed on other branches) with which this
# one conflicts.
-PACKAGE_BRANCH = ${PACKAGE_BASE_NAME}$(and $(filter-out master,$(1)),-$(1))
+PACKAGE_BRANCH = ${PACKAGE_BASE_NAME}$(and $(filter-out master,$(1)),-$(subst _,-,$(1)))
PACKAGE_NAME := $(call PACKAGE_BRANCH,${GIT_BRANCH})
PACKAGE_CONFLICT := $(foreach I,$(filter-out ${GIT_BRANCH},${GIT_BRANCHES}),$(call PACKAGE_BRANCH,${I}))
PACKAGE_VERSION := ${PACKAGE_BASE_VERSION}.${GIT_VERSION}