> Author: phk > Date: Sun Oct 23 19:46:01 2011 > New Revision: 226672 > URL: http://svn.freebsd.org/changeset/base/226672 > > Log: > Add a "-P olddistfiles" facility to prefetch ports distfiles, using an > old distfile directory as primary source: > > mkdir /freebsd/ports/distfiles.old > mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old > sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old > rm -rf /freebsd/ports/distfiles.old > > Unfortunately bsd.ports.mk does not attempt to use a hard-link so > while this runs you need diskspace for both your old and your "new" > distfiles.
With regard to removing old distfiles, if a full Ports tree is assumed to be available, then ports/Tools/scripts/distclean.sh -f may be used. With regard to pre-fetching new distfiles, new versions of ports may have new dependencies, so it would be prudent to run the "fetch-recursive" target in addition to "checksum". (Of course, this is a best effort in batch mode: some new dependencies may be dependent upon non-default choices for new options that the user may make later.) Nits: I think you mean bsd.port.mk(only 1 "s")? Also, there is a typo in the comment on line 271: s/checksump/checksum/. b. _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"