Date: Fri, 27 Oct 2000 12:09:28 +0300 From: Maxim Sobolev <sobomax@FreeBSD.org> To: "David W. Chapman Jr." <dwcjr@inethouston.net> Cc: ports@FreeBSD.org Subject: Re: New Message-ID: <39F94648.3B53FD28@FreeBSD.org> References: <061201c03ff1$2dac2ae0$931576d8@inethouston.net> <39F94283.2C8FC791@FreeBSD.org> <063801c03ff5$050f4c80$931576d8@inethouston.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"David W. Chapman Jr." wrote: > I modified the following in the makefile > > .if defined(USE_FACILITY) > _USE_FACILITY:= `${ECHO} ${USE_FACILITY} | ${TR} "[:lower:]" "[:upper:]"` > USE_FACILITY= ${_USE_FACILITY} > .else > @${ECHO_MSG} "you can choose which syslog faciliy by setting LOG_FACILITY > to: daemon, local0, etc. daemon is the defau > USE_FACILITY= DAEMON > .endif > > and it puts this in the site.h that I am trying to modify > > #define DHCPD_LOG_FACILITY LOG_`echo something | /usr/bin/tr "[:lower:]" > "[:upper:]"` It is because you use single quotation marks when passing ${USE_FACILITY} into regular expression substitutions string, so the shell doesn't invoke subshell to substitute `blabla blabla`, but instead pass it as-is: @${PERL} -pi.fbsd -e 's.!!USE_FACILITY!!.${USE_FACILITY}.g' Use the following instead: @${PERL} -pi.fbsd -e "s.!!USE_FACILITY!!.${USE_FACILITY}.g" -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39F94648.3B53FD28>