Skip to content

Commit

Permalink
MFC r296585:
Browse files Browse the repository at this point in the history
  These group names may be used as a cookie, so replace any non-fs-safe
  characters.
  • Loading branch information
bdrewery committed Mar 28, 2016
1 parent 047bc66 commit 4030fbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions share/mk/bsd.files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ __<bsd.files.mk>__:

FILESGROUPS?= FILES

.for group in ${FILESGROUPS}
_FILESGROUPS= ${FILESGROUPS:C,[/*],_,g}

.for group in ${_FILESGROUPS}
buildfiles: ${${group}}
.endfor

all: buildfiles

.for group in ${FILESGROUPS}
.for group in ${_FILESGROUPS}
.if defined(${group}) && !empty(${group})
installfiles: installfiles-${group}

Expand Down
6 changes: 4 additions & 2 deletions share/mk/bsd.incs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@

INCSGROUPS?= INCS

_INCSGROUPS= ${INCSGROUPS:C,[/*],_,g}

.if !target(buildincludes)
.for group in ${INCSGROUPS}
.for group in ${_INCSGROUPS}
buildincludes: ${${group}}
.endfor
.endif

all: buildincludes

.if !target(installincludes)
.for group in ${INCSGROUPS}
.for group in ${_INCSGROUPS}
.if defined(${group}) && !empty(${group})

${group}OWN?= ${BINOWN}
Expand Down

0 comments on commit 4030fbd

Please sign in to comment.