summaryrefslogtreecommitdiffstats
path: root/usr.bin/svn
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2015-02-12 00:17:14 +0000
committergjb <gjb@FreeBSD.org>2015-02-12 00:17:14 +0000
commit4bd760cd4d715b070e9075747ac4d2b624b94458 (patch)
treed4dc3e1eb0988c3c3cf229067f61b1fb28c4fac8 /usr.bin/svn
parent60f7add83dbd4b9e2d0648782151b4231ea2d3f4 (diff)
downloadFreeBSD-src-4bd760cd4d715b070e9075747ac4d2b624b94458.zip
FreeBSD-src-4bd760cd4d715b070e9075747ac4d2b624b94458.tar.gz
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
Diffstat (limited to 'usr.bin/svn')
-rw-r--r--usr.bin/svn/svn/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/svn/svn/Makefile b/usr.bin/svn/svn/Makefile
index 30307be..b4f76f5 100644
--- a/usr.bin/svn/svn/Makefile
+++ b/usr.bin/svn/svn/Makefile
@@ -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
OpenPOWER on IntegriCloud