summaryrefslogtreecommitdiff
path: root/mk/scripts/binpkg-cache
AgeCommit message (Collapse)AuthorFilesLines
2006-12-15Remove trailing tabs.martti1-3/+3
2006-12-15Remove trailing spaces.martti1-6/+6
2006-07-28Update the usage output to reflect current reality. Noted by Stoneddmcmahill1-4/+14
Elipot.
2006-07-28remove spurious empty line at the top of the summary filesdmcmahill1-2/+3
2006-07-28Allow the binpkg-cache script to also generate pkg_summary.gz filesdmcmahill1-4/+39
if requested. Suggested by Joerg Sonnenberger.
2006-06-21When producing the list of directories containing binary packages, dodmcmahill1-3/+29
some extra processing to ensure that we have a list of unique directories. Otherwise we end up with two problems: - cache files get rebuilt all the time because they get built once for each path to the directory in question and since the path ends up in the cache, it is always declared out of date. - we end up with multiple links to the same binary package in the README.html files. Committed during the freeze becuase this is a real bug which is encountered daily.
2006-06-08undo most of the last commit which was a mistake.dmcmahill1-12/+3
2006-06-06When using find to search for the "All" directories containing binarydmcmahill1-4/+13
packages, use -follow. Hopefully this will pick up all of the binary packages again after the ftp.netbsd.org reorganization.
2006-01-05Fix a bug which caused the README.html generation to fail when the packagesdmcmahill1-3/+11
directory did not exist. Now the generation completes with a warning that no binary packages were found. Reported in PR pkg/32351.
2005-05-24Add more error checking. PACKAGES must exist. No extra command line args ↵dmcmahill1-1/+12
taken.
2005-05-24improve the message when an invalid cache file version is founddmcmahill1-2/+4
2005-05-24Improve error checking. Specifically, after a new cache file isdmcmahill1-7/+27
created in a temp directory, issue a warning if we fail to install it in the package directory. If the error happens on the top level (master) cache file, then error out. For a subdirectory, issue a warning and drop that directory from the master cache.
2005-05-22use find ${DIR}/ -name \*${SUFX} instead of ls ${DIR}/*${SUFX} whendmcmahill1-4/+7
generating a list of possibles packages. Avoids proglems with too long of a command line for ls. While here change find to ${FIND}.
2005-05-19- if the mv of the temporary cache file to the real one fails, usuallydmcmahill1-4/+18
due to a directory permissions error, then error out. - when the master cache has just been newly created, don't also report that the master cache is up to date. Both were suggested by Christian Hattemer.
2005-05-17Rework the README.html generation code. Major changes are:dmcmahill1-0/+312
- completely redo the code which decides on the machine architecture, operating system, and operating system version for the binary packages. The old way just used to directory names to take a guess. The new way creates a cache file containing meta-data for all the binary packages in each "All" directory. This cache file is consulted when generating the lists of available binary packages. The meta-data is obtained with pkg_info so it should always be correct even if you do something silly like mix OS_VERSION or MACHINE_ARCH packages up in the same directory. Among the benefits are: works when PACKAGES is not $PKGSRC/packages, works with a more or less arbitrary subdirectory structure, works when there are subdirectories for multiple operating systems. This portion of the fix should address PR25390. The cache files are only updated when the contents of an "All" directory changes or if the cache file format changes. There is some room for improving the updating of the cache files, but its not too bad the way it is. - fix up some of the awk code so that generadme.awk works with Solaris nawk as well as NetBSD's nawk and gawk (for pre-2.0 systems). - remove some "if ! foo" shell constructs to increase portability. - be more consistent with what variables get passed to mkreadme from make and which ones are determined automatically. Mostly this meant moving stuff into mkreadme to make it easier to run it standalone.