Module Name: othersrc
Committed By: agc
Date: Tue May 17 00:22:44 UTC 2011
Modified Files:
othersrc/external/bsd/gensetlist: gensetlist.c
Log Message:
print the set name for scripts as well as program definitions (or both)
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/external/bsd/gensetlist/gensetlist.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/gensetlist/gensetlist.c
diff -u othersrc/external/bsd/gensetlist/gensetlist.c:1.4 othersrc/external/bsd/gensetlist/gensetlist.c:1.5
--- othersrc/external/bsd/gensetlist/gensetlist.c:1.4 Sat May 14 00:08:45 2011
+++ othersrc/external/bsd/gensetlist/gensetlist.c Tue May 17 00:22:44 2011
@@ -394,10 +394,13 @@
pdefs(&vars, buf, sizeof(buf), NULL));
}
}
- /* programs */
- if (vars.progname[0]) {
+ /* if a program or a script, then print the set name */
+ if (vars.progname[0] || vars.scriptc > 0) {
psetname(setname, sizeof(setname),
"\n[src/distrib/sets/lists/base/mi]\n");
+ }
+ /* programs */
+ if (vars.progname[0]) {
printf(".%s/%s\t\tbase-%s-bin\t%s\n",
vars.bindir, vars.progname, vars.category,
pdefs(&vars, buf, sizeof(buf), NULL));