generate an INDEX file for a ports tree

Alexey V. Degtyarev alexey at renatasystems.org
Thu May 7 08:19:08 EDT 2009


 Hi,

> how should I generate an INDEX file for a given ports tree
> and it's environment after a ports tree update?
> 
> The postPortsTreeUpdate hook seems to be of no help since it
> imho does not respect a ports tree environment (from
> $tb/scripts/etc/env/portstree.*):
> --------------------------------------------------------------
> Name       : postPortsTreeUpdate
> Command    : 
> Description:
> Hook to run after a PortsTree has been updated.
> The following environment will be passed to the hook command:
>         PORTSTREE : PortsTree name
>         UPDATE_CMD : Update command
>         PB : Tinderbox root
>         RC : Result code of the update command
> --------------------------------------------------------------

 PORTS_BASEDIR=${PB}/portstrees
 make_j=`sysctl -n hw.ncpu || echo 1`
 env PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports make \
 	-j${make_j} -C ${PORTS_BASEDIR}/${PORTSTREE}/ports \
	index

 Makes INDEX in my configuration at every portstree update with
 postPortsTreeUpdate hook.

-- 
Alexey V. Degtyarev


More information about the tinderbox-list mailing list