On Thu, Jun 5, 2008 at 12:00 PM, < [EMAIL PROTECTED]> wrote: > Message: 12 > Date: Thu, 05 Jun 2008 18:29:00 +0200 > From: Rainer M?ller <[EMAIL PROTECTED]> > Subject: Re: Suggested port command enhancement? > To: Daniel Horwood <[EMAIL PROTECTED]> > Cc: MacPorts Users <macports-users@lists.macosforge.org> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Daniel Horwood wrote: > > On 04/06/2008, at 9:05 AM, Rainer M?ller wrote: > > On 10.5.3 with macports 1.6, > > $ sudo pormirror > > > > outputs: > > can't read "0": no such variable > > while executing > > "exec /usr/bin/tclsh "$0" "$@"" > > (file "/opt/local/bin/portmirror" line 3) > > Hm, this looks like the line meant for /bin/sh got executed by Tcl. Yes, > a backslash is missing there. I can confirm the issue for 1.6.0. But > it was already fixed in trunk and works there. > > Quick fix for 1.6.0: Replace the first three lines of portmirror with > the first three lines from port. Or simply add the missing backslash at > the end of the modeline (line 2) in portmirror. > > > Am I missing something? Also, are 'port mirror' or 'portmirror' > > documented anywhere? > > Don't think so. I found out what they do by reading the source. > > port mirror downloads the distfiles and stores them in the distfiles > map. portmirror iterates over the distfiles and deletes anything that is > not in the distfiles map. >
I don't see the difference? [/Users/paul]# head -4 /opt/local/bin/port /opt/local/bin/portmirror ==> /opt/local/bin/port <== #!/bin/sh # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \ exec /usr/bin/tclsh "$0" "$@" # port.tcl ==> /opt/local/bin/portmirror <== #!/bin/sh # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \ exec /usr/bin/tclsh "$0" "$@" # portmirror.tcl -- Paul Beard / www.paulbeard.org/ <[EMAIL PROTECTED]/[EMAIL PROTECTED]>
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users