The NetBSD Project

CVS log for src/distrib/sets/makeplist

[BACK] Up to [cvs.NetBSD.org] / src / distrib / sets

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 8 13:02:47 2023 UTC (5 months ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

More conservative umask

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 8 12:58:04 2023 UTC (5 months ago) by christos
Branch: MAIN
Changes since 1.21: +1 -0 lines
Diff to previous 1.21 (colored)

Set the file creation mask consistently because the files these scripts
create can become part of an iso image.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 18 10:47:44 2021 UTC (2 years, 5 months ago) by uki
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 (colored)

Replace @dirrm to @pkgdir in packing list of syspkg

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 2 15:52:14 2009 UTC (14 years, 4 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, khorben-n900, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

Patches from Lloyd Parkes in PR 41684, plus my changes:
* ${HOSTNAME} is special to bash, so rename the variable to HOSTNAME_CMD.
* Don't use "cd -".
* Don't use only comments in the else part of an if statement.

Revision 1.19.20.1, Sun Oct 5 20:10:32 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.19: +0 -0 lines
FILE REMOVED

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 4 13:57:04 2006 UTC (18 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: mjf-devfs2
Changes since 1.18: +37 -6 lines
Diff to previous 1.18 (colored)

Add a new "-I realprefix" arg.  When making syspkgs, we need to use
"-P ${DESTDIR} -I /". ("-I" chosen for similarity to pkg_create.)

XXX: makeplist seems to be quite broken, in that it looks at the files
and directories that are actually present in DESTDIR, whereas I
thought its job was to provide an list of what *should* be there,
regardless of what is *actually* there.  Fixing this seems to require
a change to the format of the "lists" files, so that they can
unambiguously identify directories.

Reviewed by agc

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 3 18:31:09 2006 UTC (18 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.17: +35 -35 lines
Diff to previous 1.17 (colored)

Ensure that (almost) all shell variables in distrib/sets/* scripts are
used with curly braces and quotes, as in "${var}".

Also ensure that command substitution is quoted, as in "$(command)", and
convert `command` to $(command).

Reviewed by agc

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 3 16:40:16 2006 UTC (18 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

Add shell variables defined in sets.subr for almost all commands used
by scripts in distrib/sets/*.  This is intended to be useful when cross
building.  Only trivial commands like echo, cat, and rm are excluded
from this treatment.

While I am here, make ${MTREE} and ${DB} follow the pattern used by most
other such variables.

Reviewed by agc.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 12 01:38:04 2005 UTC (19 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.15: +16 -6 lines
Diff to previous 1.15 (colored)

One of my users stumbled over a bug: src/distrib/sets/makeplist
uses find(1) in a non-POSIX way.  The trouble is that -maxdepth is
not an option for POSIX find(1).  His NetBSD 1.6.2 system tripped
over that.  I converted the -maxdepth uses to -prune, which is
POSIX-compatible.

While I was in makeplist, I wrote a comment about the xargs/find/read
cleverness that I use to generate the @dirrm directives.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 23 15:11:26 2004 UTC (19 years, 8 months ago) by erh
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

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.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 23 06:13:23 2004 UTC (20 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

`-p' takes an argument, so fix the getopts optstring.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 3 02:38:58 2004 UTC (20 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

rename all the <bsd.own.mk> derived variables to uppercase, and export
them to the environment.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 29 03:13:25 2003 UTC (20 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.11: +32 -58 lines
Diff to previous 1.11 (colored)

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).

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 25 07:19:46 2003 UTC (20 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.10: +1 -20 lines
Diff to previous 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 17 09:51:24 2003 UTC (20 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

Awk prefers regex escapes to look like \\ instead of \. Go figure.
This patch squashes hundreds of annoying warning messages:

awk: cmd. line:1: warning: escape sequence `\.' treated as plain `.'

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 4 05:53:20 2003 UTC (20 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8 (colored)

add initial support for gcc3

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 23 09:17:04 2003 UTC (20 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.7: +65 -44 lines
Diff to previous 1.7 (colored)

Fix typo: osreleasese -> osreleases.

Optimizations: do not re-invoke make(1) unnecessarily, it takes a
full second to bootstrap it on my on my anemic PC. Also, use
xargs/find instead of awk/system()/shell to classify each package
path as a file or directory.

For consistency, adopt similar variables names as makeflist uses.

Use the set-list routines in sets.subr instead of duplicating code.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 12 19:55:18 2003 UTC (20 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.6: +49 -26 lines
Diff to previous 1.6 (colored)

Bring the machine and arch-level decision of shared libs vs none up to date,
and also bring up to date the ELF vs a.out knowledge.

Also, sort the directories into reverse alphabetical order, and add them to
the generated PLIST file after any file entries.

Grab the comments into a single file from the individual syspkg set entries.

Grab the descriptions into a single file from the individual syspkg set entries.

Add an attributes file to which can be added attributes for system packages.
The "preserve" attribute has been implemented.

Add extra comments and descriptions for system packages which were missing.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 5 11:18:08 2003 UTC (20 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Remove the leading "./" from all entries in the generated PLIST.

Make awk do more of the work - remove two egrep invocations.

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 31 23:17:29 2003 UTC (20 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Fix typo to show correct prefix for PLIST, s/\$plist/\$prefix/.

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 31 22:56:37 2003 UTC (20 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Spelling fix, s/makeflist/makeplist/

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 09:16:09 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull up revision 1.3 (requested by lukem):
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

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 23 09:02:45 2002 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 24 22:15:28 2002 UTC (22 years ago) by bjh21
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Rename arm26 -> acorn26.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 26 18:43:00 2001 UTC (22 years, 3 months ago) by jwise
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>