On Nov 12, 2007, at 11:47, markd@macports.org wrote:
To see everywhere in your ports where the "cd" command is currently being used, you can use a command like this in the Terminal (replacing "EMAIL" with your maintainer email address (to which this email was sent)):
port file maintainer:EMAIL \ | xargs grep "[[:space:]]cd[[:space:]]" \ | grep -v "system[[:space:]]"
I'm getting the error "xargs: unterminated quote". And is "space" a literal or is it to be replaced by a space?
It should work as given, except for replacing "EMAIL" with your maintainer name. Here's the output I get for you: port file maintainer:markd \ | xargs grep "[[:space:]]cd[[:space:]]" \ | grep -v "system[[:space:]]" \ | sed s%^/Users/rschmidt/macports/dports/%% net/argus-monitor/Portfile: cd ${prefix}/etc/postfix devel/expect/Portfile:post-destroot { cd ${destroot}$ {prefix}/lib net/monarch/Portfile: cd ${monarchdir} net/monarch/Portfile: cd ${monarchdir} net/nagios/Portfile: cd ${prefix}/etc/nagios net/nedi/Portfile: cd ${prefix}/apache2/conf net/nedi/Portfile: cd ${prefix}/share/${name} net/nedi/Portfile: cd ${nedidir}${name} net/nedi/Portfile:0 * * * * cd ${nedidir}${name} ; ./nedi.pl -c >> / dev/null 2>&1 net/netmrg/Portfile: cd ${prefix}/share/netmrg/db net/nrg/Portfile: cd ${prefix}/var/${name} www/php5-rrdtool/Portfile: cd ${worksrcpath} net/rancid/Portfile: cd <Apache-directory>/lg net/smokeping/Portfile: cd ${smokedata}/log net/smokeping/Portfile: cd ${smokeetc} mail/sympa/Portfile: cd ${prefix}/apache2/conf mail/vm-pop3d/Portfile: cd ${prefix}/etc/postfix mail/vm-pop3d/Portfile: cd ${prefix}/etc/${name} mail/vm-pop3d/Portfile: cd my-vdomain1.com net/zabbix/Portfile: cd ${prefix}/share/zabbix/schema net/zabbix/Portfile: cd ${prefix}/share/zabbix/data On Nov 12, 2007, at 12:41, markd@macports.org wrote:
I just realized that a number of my ports use "cd ${somedir}" in the ui_msgs to instruct users. I hope none of my ports use the "cd" Tcl primitive, but I'm still having trouble getting this command right to know for sure.
Good point! You're right, my search will erroneously flag occurrences of "cd" within ui_msgs. Not sure how to filter those out automatically.