Commit Graph

9 Commits

Author SHA1 Message Date
erh 10d0173282 Make all the sets scripts work even when not run from the directory that
they reside in.
Change any uses of dirname to use shell variable substitution instead.
2004-07-23 15:11:26 +00:00
lukem 6f9a1982b5 rename all the <bsd.own.mk> derived variables to uppercase, and export
them to the environment.
2004-01-03 02:38:58 +00:00
lukem b852db83fb Significant overhaul of how the sets are used:
* Add an optional third field to the sets file which is a list of
  comma separated keywords that control if the line is printed.
  Currently supported keywords
	kerberos4	${MKKERBEROS4} != no
	kerberos	${MKKERBEROS} != no
	lint		${MKLINT} != no
	obsolete	${obsolete} != 0.
			In this case, non obsolete files are not printed.
  (This will allow future support for builds with variables such as
  MKHESIOD and MKYP set to "no".)

* Use sh(1)'s getopts where appropriate, and otherwise cleanup the
  various scripts.

* Move defaults for sets.subr from sets.defaults into sets.subr.
  Move replicated code for determining stuff such as shlibs type
  from various scripts into sets.subr.

* Merge the obsolete.*, krb.*, krb4.* and lint.* into the appropriate
  main lists with the relevant third field keyword(s).
2003-12-29 03:13:25 +00:00
dyoung 17b5668ccd Factor duplicated code for setting variables such as machine_cpu
and machine_arch to their defaults into sets.defaults, and source
it at the top of each script.

Also, to be consistent with variable naming, s/arch/machine_arch/.

sets.defaults introduces two new variables, krb and krb4, which
will affect whether Kerberos- or Kerberos IV-only files are put
into the set lists.
2003-11-25 07:19:46 +00:00
dyoung 4b48743aa1 Stop duplication of makeflist, regpkg, makeplist code. Use routine
in sets.subr, instead.
2003-06-23 09:20:55 +00:00
lukem c64952588e set MAKE="${MAKE:-make} -j 1" to prevent problems where the output
of make -j N>1 would result in junk in various shell variables
2002-07-23 09:02:45 +00:00
bjh21 b416cfd277 Rename arm26 -> acorn26. 2002-03-24 22:14:23 +00:00
lukem 6cfea188a7 - fix the comment describing what this does
- " egrep ... | awk "  can be replaced by a smarter bit of awk...
2002-02-27 10:43:42 +00:00
jwise 25f7c6aadf Add two utility scripts used by syspkg from draga.com CVS:
listpkgs -- a utility script for syspkg maintainers.  Given a pkgset name,
	    list all packages in that pkgset by parsing the src/distrib
	    set list files.  Imported at draga.com revision 1.2.

Usage: ./listpkgs [-a arch] [-m machine] [-s setsdir] [-p prefix] setname
        -a arch         set arch (e.g, m68k, mips, powerpc)
        -m machine      set machine (e.g, amiga, i386, macppc)
        -s setsdir      directory to find sets
        setname		set to list packages for

makeplist -- a script called by <bsd.syspkg.mk>.  Given a pkgset name
	     and a pkg name, output a valid PLIST for that package by
	     parsing the src/distrib set list files.  Imported at
	     draga.com revision 1.2.

Usage: ./makeplist [-a arch] [-m machine] [-s setsdir] [-p prefix] setname pkgname
        -a arch         set arch (e.g, m68k, mips, powerpc)
        -m machine      set machine (e.g, amiga, i386, macppc)
        -s setsdir      directory to find sets
        -p prefix       prefix for created plist
        setname pkgname set and package to build plist for
2001-12-26 18:43:00 +00:00