summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-11-04 23:03:59 +0000
committergjb <gjb@FreeBSD.org>2014-11-04 23:03:59 +0000
commit98a779ac259d7def4d241c69e6813ece3393a5ad (patch)
tree4458cd8c28f25d9ff77b03b915a8a5bb9e69b00f /release
parente9e0856d9fe2dfe276b7d084a7b53605ef9baa01 (diff)
downloadFreeBSD-src-98a779ac259d7def4d241c69e6813ece3393a5ad.zip
FreeBSD-src-98a779ac259d7def4d241c69e6813ece3393a5ad.tar.gz
MFstable10 r274102:
MFC r274095: Fix VOLUME_LABEL when BRANCH contains '-' and '.' characters. Approved by: re (hrs) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r--release/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile
index 25fe033..6198b8e 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -56,10 +56,10 @@ ${_V}!= eval $$(awk '/^${_V}=/{print}' ${.CURDIR}/../sys/conf/newvers.sh); echo
.for _V in ${TARGET_ARCH}
.if !empty(TARGET:M${_V})
OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET}
-VOLUME_LABEL= ${REVISION:C/\./_/g:}_${BRANCH}_${TARGET}
+VOLUME_LABEL= ${REVISION:C/[.-]/_/g}_${BRANCH:C/[.-]/_/g}_${TARGET}
.else
OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET}-${TARGET_ARCH}
-VOLUME_LABEL= ${REVISION:C/\./_/g:}_${BRANCH}_${TARGET_ARCH}
+VOLUME_LABEL= ${REVISION:C/[.-]/_/g}_${BRANCH:C/[.-]/_/g}_${TARGET_ARCH}
.endif
.endfor
.endif
OpenPOWER on IntegriCloud