Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/18/2006 00:10:07
Module Name:	pkgsrc
Committed By:	jlam
Date:		Wed Jan 18 00:10:07 UTC 2006

Modified Files:
	pkgsrc/mk: bsd.pkg.mk
Added Files:
	pkgsrc/mk: bsd.utils.mk
	pkgsrc/mk/scripts: depends-depth-first.awk

Log Message:
Create a standalone awk script, depends-depth-first.awk, that encapsulates
the code that performs the dependency graph traversal (in depth-first
fashion).  This script has a hook that allows executing a shell command
line upon visiting a dependency's package directory in either prefix
or postfix order, and may be used to simplify the code in bsd.pkg.mk
that iterates over dependencies.

This awk script requires the target "show-depends-pkgpaths", which is
defined in a new Makefile pkgsrc/mk/bsd.utils.mk.  This file should
accumulate "utility" targets that current exist in bsd.pkg.mk, i.e.,
"helper" targets for various actions.


To generate a diff of this commit:
cvs rdiff -r1.1788 -r1.1789 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r0 -r1.1 pkgsrc/mk/bsd.utils.mk
cvs rdiff -r0 -r1.1 pkgsrc/mk/scripts/depends-depth-first.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.