[darwinbuild-changes] [281] trunk/darwinxref
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 02:02:18 PDT 2006
Revision: 281
http://trac.macosforge.org/projects/darwinbuild/changeset/281
Author: kevin
Date: 2006-10-04 02:02:17 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
- added '?' argument to version, printing out only projects from current build.
Modified Paths:
--------------
trunk/darwinxref/DBPlugin.h
trunk/darwinxref/plugins/version.c
Modified: trunk/darwinxref/DBPlugin.h
===================================================================
--- trunk/darwinxref/DBPlugin.h 2005-09-26 23:39:08 UTC (rev 280)
+++ trunk/darwinxref/DBPlugin.h 2006-10-04 09:02:17 UTC (rev 281)
@@ -146,6 +146,7 @@
CFTypeID DBCopyPropSubDictType(CFStringRef property);
CFArrayRef DBCopyPropNames(CFStringRef build, CFStringRef project);
CFArrayRef DBCopyProjectNames(CFStringRef build);
+CFArrayRef DBCopyOneProjectNames(CFStringRef build);
CFArrayRef DBCopyChangedProjectNames(CFStringRef oldbuild, CFStringRef newbuild);
Modified: trunk/darwinxref/plugins/version.c
===================================================================
--- trunk/darwinxref/plugins/version.c 2005-09-26 23:39:08 UTC (rev 280)
+++ trunk/darwinxref/plugins/version.c 2006-10-04 09:02:17 UTC (rev 281)
@@ -49,6 +49,12 @@
for (i = 0; i < count; ++i) {
printProjectVersion(CFArrayGetValueAtIndex(projects, i));
}
+ } else if (CFEqual(project, CFSTR("?"))) {
+ CFArrayRef projects = DBCopyOneProjectNames(build);
+ CFIndex i, count = CFArrayGetCount(projects);
+ for (i = 0; i < count; ++i) {
+ printProjectVersion(CFArrayGetValueAtIndex(projects, i));
+ }
} else {
printProjectVersion(project);
}
@@ -57,7 +63,7 @@
}
static CFStringRef usage() {
- return CFRetain(CFSTR("<project>"));
+ return CFRetain(CFSTR("<project>\n*: all projects (including inheritance)\n?: all projects (without inheritance)"));
}
int initialize(int version) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/6cbc97c3/attachment-0001.html
More information about the darwinbuild-changes
mailing list