old packages not saved
Dmitry Morozovsky
marck at rinet.ru
Wed Aug 10 02:28:44 EDT 2011
On Tue, 9 Aug 2011, Jason Helfman wrote:
> > > So if I wanted to maintain the previously built package, a hook could just
> > > be make for this, yes?
> >
> > You'd need to do a prePortBuild Hook to backup the last build version
> > package, but yes, it could be done.
>
> I took care of this as a postPortBuild, to just backup the current package
> to another directory. Here is the script, and thanks, again!
>
> #!/bin/sh
> #archives packages, jgh
>
> if [ "${STATUS}" = "SUCCESS" ] ; then
> if [ ! -d ${PB}/packages-archive/${BUILD}/All ]; then
> /bin/mkdir -p ${PB}/packages-archive/${BUILD}/All
> fi
>
> if [ -s ${PB}/packages/${BUILD}/All/${PACKAGE_NAME}.tbz ] ; then
> /bin/cp ${PB}/packages/${BUILD}/All/${PACKAGE_NAME}.tbz
> ${PB}/packages-archive/${BUILD}/All/${PACKAGE_NAME}.tbz
> fi
> fi
BTW, if you are on the same file system, you can decrease your space usage by
s/cp/ln/ - then forecoming rm just decrease link count...
--
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the tinderbox-list
mailing list