Commit Graph

2 Commits

Author SHA1 Message Date
lukem e2551d1d82 getdirs.awk:
- improve parsing; explicitly skip lines we don't want and use the rest.
- keep track of which items were explicitly listed, and only output directories
  at the END which weren't listed, each with a suffix of  "optional".
- convert to my awk KNF

join.awk:
- when joining, output all of the matching entry from the first file
  and the 2nd & subsequent lines of the entry from the second file.
- convert to my awk KNF

these changes mean that maketars use of pax will result in tar files
with the traditional behaviour of only containing the necessary
directories, rather than all the parent directories required to get to
a particular item.  this latter behaviour was necessary for METALOG
(i.e UNPRIVED) pax .tgz set file generation, until the changes above
fixed it.
2002-05-19 13:32:44 +00:00
lukem c71e0408fb Fixes to allow unprivileged building of the binary tar files to
contain the correct permissions.

Makefile:
- set SETSENV to the list of variables we wish to pass to each shell
  script and use that, rather than duplicating the effort below
- call maketars with "-M ${METALOG}" if UNPRIVED is set.

getdirs.awk:
- takes a list of filenames and outputs the list along with all the
  directories used by those filenames

maketars:
- support "-M metalog"
- merge etc/mtree/NetBSD.dist with the "-M metalog" for use in the tgz build
- for a given set, find the union between the set list and the metalog
  generated above and use that as the list of files to ${PAX} up as the
  tgz file.
2002-02-27 10:51:47 +00:00