Portfile question (actually, tcl question)

Gerben Wierda gerben.wierda at rna.nl
Fri Sep 20 15:33:02 UTC 2019


I’m new to tcl, so maybe this is simple, but I haven’t been able to solve it.

I want to do something like this:

startupitem.start      "[variant_isset "withdnsserver"] ? "port load dns-server\n\t" : "" ] port load clamav-server
\tport load apache-solr8
\tport load redis
\tport load dcc
\tport load postfix
\tport load dovecot2
\tport load rspamd
\tport load logrotate"

Now, obviously, this doesn’t work because of all the double quotes inside double quotes. 

How do I do this without using variables?

Gerben Wierda
Chess and the Art of Enterprise Architecture <http://enterprisechess.com/>
Mastering ArchiMate <http://masteringarchimate.com/>
Architecture for Real Enterprises <https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld
On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20190920/ad593d8b/attachment.html>


More information about the macports-users mailing list