mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Reduce number of lines to set ORGANIZATION_NAME in
freebsd-organization.h. Patched by: ian PR: 197540 MFC after: 3 days X-MFC-with: r278603 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
e17c0a1e56
commit
21c31ec174
1 changed files with 1 additions and 6 deletions
|
|
@ -54,13 +54,8 @@ DPSRCS+= freebsd-organization.h
|
|||
CLEANFILES+= freebsd-organization.h
|
||||
CFLAGS+= -I. -DHAS_ORGANIZATION_NAME
|
||||
freebsd-organization.h:
|
||||
@echo '#define ORGANIZATION_NAME ${ORGANIZATION}' \
|
||||
@echo "#define ORGANIZATION_NAME \"$$(eval echo ${ORGANIZATION})\"" \
|
||||
> freebsd-organization.h
|
||||
@# Remove quotes from ORGANIZATION_NAME if they exist.
|
||||
@sed -i '' -e 's,",,g' freebsd-organization.h
|
||||
@# Quote ORGANIZATION_NAME, in case it is two or more words.
|
||||
@sed -i '' -E 's, , ",' freebsd-organization.h
|
||||
@sed -i '' -E 's,$$,",' freebsd-organization.h
|
||||
.endif
|
||||
|
||||
svnlite.1: svn.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue