From: gjb Date: Tue, 4 Nov 2014 17:24:13 +0000 (+0000) Subject: Fix VOLUME_LABEL when BRANCH contains non-alpha X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f9cdf3e5ad831c4d81c3fda9c1b893d2df22d419;p=people%2Fjulieng%2Ffreebsd.git 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 --- 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