From 21c31ec17465f28bd85af95b453243d7f23a2b9d Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 12 Feb 2015 00:17:14 +0000 Subject: 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 --- usr.bin/svn/svn/Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'usr.bin/svn') diff --git a/usr.bin/svn/svn/Makefile b/usr.bin/svn/svn/Makefile index 30307be2c04c..b4f76f581fe2 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 -- cgit v1.2.3