summaryrefslogtreecommitdiff
path: root/mk/bulk/printindex
AgeCommit message (Collapse)AuthorFilesLines
2014-06-02Remove old bulk build code. Use pbulk.wiz1-202/+0
2008-04-29Drop clauses 3 and 4 from TNF licensesmartin1-8/+1
2008-01-04Replaced all references to pkglint with lintpkgsrc, which has its ownrillig1-2/+2
package since a few days.
2006-12-10Fixed the creating of numerous zombie processes, which is a bug in therillig1-1/+8
NetBSD /bin/sh, reported in PR 35227.
2006-11-26The bulk builds now use the new target can-be-built-here, which checksrillig1-2/+20
if some of PKG_SKIP_REASON, PKG_FAIL_REASON, NOT_FOR_*, ONLY_FOR_* are set. The code uses some shell trickery to avoid the use of subshells, since these would prevent the variable assignments from being effective.
2005-11-28- Don't use the .pkglist cache anymore, as the cache is quite cheap torillig1-12/+14
regenerate. This change makes printdepends and printindex more independent, because before this change, printindex could use the cache provided by printdepends, but not the other way round. - Fixed the section "Sanity checks, part 2" by allowing newline characters in the list of packages from which the index is built. This bug just hasn't been noticed because the list taken from the cache did not have newlines at all. The '-' character is not included in the $allowed variable because it is handled specially and differently by sh(1) and tr(1). - Updated the printindex man page.
2005-11-19Made the diagnostics for invalid characters in BULK_PREREQ and therillig1-6/+8
package list more useful by only showing the invalid characters, not the complete variable value.
2005-11-19- Moved the "man page" comment into a real man page.rillig1-18/+17
- Added more sanity checks.
2005-11-16As I'm not sure for what things ${BULKFILESDIR}/${BROKENFILE} is used,rillig1-2/+2
error messages from failed "cd" commands simply go to stderr.
2005-11-16Another rewrite:rillig1-21/+65
- Changed the implementation how package-specific log files are generated. No user-visible changes. - Stricter preconditions: - bulkfilesdir must be an absolute path. - brokenfile must not contain slashes. - The .pkglist file is taken from BULKFILESDIR, not from PKGSRCDIR. - Error messages use the prefix "[printindex]" instead of "===>", as the latter is already reserved for pkgsrc. Everything else would be confusing. - If a "cd" into a package directory fails, an error message is written to ${BULKFILESDIR}/${BROKENFILE}.
2005-11-16- Improved the "man page" comment a little.rillig1-17/+14
- Renamed the second parameter from "brokenbasedir" to "bulkfilesdir". The latter name is already used in bsd.bulk-pkg.mk for the same purpose. - Renamed "cwd" to "pkgsrcdir" for the same reason.
2005-11-14Fixed singleton variable which had been left over by one of the lastrillig1-2/+2
changes.
2005-11-11Indentation fix.rillig1-3/+3
2005-11-11Properly handle package directories containing shell special charactersrillig1-2/+11
like [], ?, *. They _really_ should not exist, but you never know. While here, added a rationale for the not-so-obvious :detect_duplicates: delimiter.
2005-11-08Fixed computation of the .broken file, which had been "./dev/null" when therillig1-4/+4
program was invoked without arguments.
2005-11-05- Rewrote the "man page" comment.rillig1-11/+32
- When printindex is called with two arguments, the second argument specifies the base directory of the <brokenfile>. The complete path is then <brokenbasedir>/${pkgdir}/<brokenfile>. This is useful for creating the log files in a directory outside the pkgsrc root.
2005-11-05Completely rewrote the printindex tool.rillig1-57/+46
- Now it starts with "set -e", preventing unwanted continuing after errors have occured. - Added more error checking and handling. - All variables are properly quoted (if at all possible). - Merged the two loops for checking packages into one loop. - Instead of first checking if a directory exists and then changing into it, the tool now tries to cd, and handles failure. - Fixed the check for duplicates. Some packages might have been skipped unintentionally.
2005-05-03Teach the bulk build scripts about the new tools framework.jlam1-3/+3
2004-04-09Commentary cleanup:jschauma1-2/+2
- If it's a full sentence, start capitalize first letter and end with a period. - Break comments at ~80 chars so it fits into a terminal.[*] (* This should be done for the code as well, but then it'll need testing. I'll do this at another point in time.)
2004-01-30allow the user to set the packages to build in build.conf (PKGLIST).grant1-4/+7
cache the list in printdepends so that printindex doesn't need to run the same command(s) again at the start of a bulk build.
2003-12-10Replace hardcoded '/usr/pkgsrc' in comments.sketch1-3/+3
2003-10-11find the right GREP and SED programs and use them.grant1-3/+9
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv1-4/+4
2002-08-22Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.jlam1-1/+1
2002-08-07Make these scripts useful on platforms other than NetBSD by using a BMAKEagc1-8/+8
environment variable, which contains the name of the make(1) program to invoke - suggestion by Julien Letessier some time ago, the confusion mine, since I thought he was referring to something else completely. Don't rely on there being a POSIX tr(1) in the path by default - test explicitly for both "yes" and "YES". Set the default for PRUNEDISTFILES to "no", since we can't assume that the user wants us to delete something which he may have been keeping around, and there are other ways of accomplishing this aim (lintpkgsrc -o, for example). Clean up some superfluous white space at the end of lines.
2001-12-01there's no need to abort this whole script if one pkg brings up anhubertf1-3/+3
error.
2001-11-25fix typo in error output message (s/PKNAME/PKGNAME). Patch fromdmcmahill1-2/+2
Hubert Feyrer.
2001-10-14add some more failure checks for robustness.dmcmahill1-2/+21
- if something fails while extracting the DEPENDS for a particular package, mark that package as broken and drop the DEPENDS info for it. This allows the build to continue and properly marks the package as broken. - if something fails while extracting the PKGNAME, also mark the pkg as broken. - be more careful about seeing if directories exist before cd'ing to them. Lack of such a test has caused problems elsewhere, so hopefully this will make the system more robust.
2001-07-13if a package subdirectory is listed in the category makefile, but doesn'tdmcmahill1-4/+10
exist, then spit out a big warning to stderr (since we often capture stdout for other purposes) and don't try and descend to that directory.
2001-03-31uncomment an important line which should have never been commented out.dmcmahill1-2/+2
printindex works now.
2001-03-27make sure that any packages listed in BULK_PREREQ get listed in the outputdmcmahill1-2/+25
even if they are not enabled in the category makefiles. This catches, in particular, pkgtools/xpkgwedge which was missing before. Thanks to Christoph Badura for noting this.
2001-02-17Handle new category-Makefile formatwiz1-2/+2
2001-01-28Initial commit.dmcmahill1-0/+64
printindex is a small shell script run from /usr/pkgsrc. It generates an index file which associates package directory (foo/bar) to package name (bar-3.2) for the entire pkgsrc tree. The index file is useful for processing of some of the dependencies during a bulk build. Written by Dan McMahill using a little bit of the code from printdepends.