aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-11-04 17:24:13 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-11-04 17:24:13 +0000
commit745ca08586caad583f361b0c3886b283288d5898 (patch)
treeb5e43d666cdfaa4c4dfe4b6d0200e3b00bbda77e /release/Makefile
parent2cba8dd301342c1c31f6dbf496e8351fa8359584 (diff)
downloadsrc-745ca08586caad583f361b0c3886b283288d5898.tar.gz
src-745ca08586caad583f361b0c3886b283288d5898.zip
Fix VOLUME_LABEL when BRANCH contains non-alpha
characters, in particular '-' and '.'. Submitted by: des Tested by: des MFC after: 3 days X-MFC-10.1: yes Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=274095
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile
index fe401f3b55f5..6d9b5e2639d6 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