On Tue, Dec 7, 2010 at 00:40, Ryan Schmidt <[email protected]> wrote:
Ryan > See: > > http://lists.macosforge.org/pipermail/macports-dev/2010-October/013131.html > > And: > > http://lists.macosforge.org/pipermail/macports-dev/2010-October/013133.html > > So you want: > > > #!/bin/bash > > HANDLE=ram > > port livecheck '(' \ > 'maintainer:(\W|^)'$HANDLE'(\W|$)' or \ > 'maintainer:(\W|^)'$HANDLE'@macports.org(\W|$)' or \ > 'maintainer:(\W|^)macports.org:'$HANDLE'(\W|$)' ')' > > > In fact there is a much more fun script that I use -- more fun because it > starts several livechecks in parallel, so you're not waiting on slow servers: > > > #!/bin/bash > > HANDLE=ryandesign > JOBS=8 > > TMPFILE=$(mktemp -t /tmp) > > PORTS=$(port echo '(' \ > 'maintainer:(\W|^)'$HANDLE'(\W|$)' or \ > 'maintainer:(\W|^)'$HANDLE'@macports.org(\W|$)' or \ > 'maintainer:(\W|^)macports.org:'$HANDLE'(\W|$)' ')' \ > | sed -E 's/ +//g' \ > | tr '\n' ' ') > > echo "all: $PORTS" > $TMPFILE > echo >> $TMPFILE > echo ".PHONY: $PORTS" >> $TMPFILE > > for PORT in $PORTS; do > echo >> $TMPFILE > echo "$PORT:" >> $TMPFILE > echo $'\t'"port livecheck $PORT" >> $TMPFILE > done > > make -f $TMPFILE -j $JOBS -s || exit $? > > rm -f $TMPFILE Thanks! That is very cool, I've just updated my script! Cheers Adam _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
