Commit Graph

56 Commits

Author SHA1 Message Date
martin
4a198ac36d Pass the name of the compressor actually used for sets to groff and use
it in the content description (XXX need to adapt a few more copies in,
as of now, unaffected architectures)
2020-06-23 06:28:01 +00:00
christos
29d11e7e15 For MKREPRO builds:
1. compute cur_date from the timestamp
2. pass the date to groff so that it can set its registers
2020-06-16 00:45:56 +00:00
uwe
499393c223 Use -mdoc2html to generate HTML TOC to avoids warnings. 2020-01-23 23:59:53 +00:00
martin
09fa017877 PR install/54836: fix broken conditional, passing the wrong set name suffix
to groff.
2020-01-05 18:37:54 +00:00
uwe
3a8509388f Improve table of contents.
For .txt and .more drop meaningless page numbers, those formats are
not paginated (with all due respect to line printers, 80s are over).

For .ps use actual formatting with proportional font and properly
aligned page numbers.  Thanks to kre@ for his help with some of the
darker corners of troff (with all due respect to my 80s self, he/I
should have paid more attention).
2019-11-30 00:28:27 +00:00
uwe
3295b861c7 Use .open/.write instead of .tm to emit TOC. 2019-11-28 00:06:39 +00:00
uwe
976914c39a Do not pass common/macros on the command line as input.
common/main already sources them, so there's no point to process the
file again *after* the document has been formatted.  Put it to SRCS so
that we still depend on it.
2019-11-27 23:19:13 +00:00
uwe
4e164a8536 Don't lose groff's stderr when creating TOC.
Divert only the .Ti lines to the TOC file.  Keep the rest, it may
contain useful messages (like the empty line bug in macros that was
messing up page numbers).

TODO: Since we already depend on groff extensions, we should just use
.open/.write to emit the TOC directly.  But commit this for now in
case I run out of round tuits.
2019-11-27 22:41:41 +00:00
uwe
aa4a633943 Make .Te and .To also emit .Ti with quoted arguments.
I missed them b/c I tested on sparc notes and sparc/install is stuck
in the 90s and doesn't include common/sysinst.  Now that all emitted
.Ti have properly quoted arguments we can revert TOCPROC to simple
grep.

While here convert .Te and .To to also use $* so we we can also drop
quoting from their calls in common/sysinst now.  Don't actually drop
those quotes yet though, as we probably can further simplify the call
sites by emitting the headings automatically instead of duplicating
them.
2019-11-27 19:07:31 +00:00
martin
11ec07e83b When creating the TOC file, strip all incoming double quotes, but output
quotes around the third arg of the generated Ti macro invocation.
This fixes the TOC in non-html output. Pointed out by kre.
2019-11-27 15:58:12 +00:00
martin
a4dc321947 More cleanup:
- simplify TOC handling and remove arg limit (from uwe)
 - use Lk with explicit anchor text in some places
 - do not allow official release builds when we can not derive the
   proper date from the buildid
2019-11-27 09:29:25 +00:00
martin
3e4f9a7f75 Modernize release notes:
- use https where possible
 - adapt to cdn/nycdn and our current auto-build conventions
 - automate where possible
Many thanks to uwe for lots of *roff help.
2019-11-24 11:15:31 +00:00
martin
d690403a01 Pass the set suffix (either .tgz or .tar.xz) from the makefile.
Document the rescue set.
2019-11-21 19:23:16 +00:00
snj
83a500f842 merge port-specific legal sections into the common file. most of these
entries were already in the common file, and it's a pain to maintain
them separately.
2015-05-20 05:19:19 +00:00
apb
b2a05dedfc For MKREPRO, remove the "%%CreationDate:" comment line from
PostScript output files.
2014-01-26 17:00:03 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
jnemeth
ff9bf3e224 add common/sysinst to SRCS 2007-12-11 20:57:19 +00:00
jnemeth
6a5f0e658e add common/netboot to SRCS 2007-12-11 18:21:52 +00:00
pavel
4195ecc3d2 Make the port-specific changelog ($MACHINE/whatis) optional by using .pso
to call a shell script which outputs nothing if the file is not present.

Remove the "whatis" file for ports where it does not contain anything
useful and hasn't been updated for years. OK tsutsui@, hubertf@.
2007-07-26 15:26:35 +00:00
pavel
152ab6b873 Remove the list of donations, which was not updated since 2004. We have
up-to-date lists at http://www.NetBSD.org/donations, so add this link
to the release notes. OK by Christos.
2007-05-06 11:00:03 +00:00
uwe
4402b3f15c Install notes into ${RELEASEDIR}/${RELEASEMACHINEDIR}, not
${RELEASEDIR}/${MACHINE}.  The former is the blessed way as it's
defined as a "subdirectory used below ${RELEASEDIR} when building a
release" and defaults to MACHINE in bsd.own.mk.

Make sure that ${RELEASEDIR}/${RELEASEMACHINEDIR} exists before
installing notes in to it.  It only ever worked because ~all ports
build at least one kernel as part of make release, and so the release
directory was created when kernel sets are installed.

XXX: Why don't we create ${RELEASEDIR}/${RELEASEMACHINEDIR} from the
top-level makefile before running make release?
2006-04-22 02:57:29 +00:00
he
e49da78c8f Add a list of files which determine the kernel version as
DISTRIBVERDEP in Makefile.distrib, and make both sysinst and
distribution notes use that information so that they rebuild
if the kernel version changes.

Distribution notes didn't have this before, sysinst had a private
(now outdated, since sys/sys/param.h now determines version) copy
of this.
2004-02-02 18:43:39 +00:00
salo
8d1781e39d netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
lukem
a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
lukem
450802d92e - define COMMON as "${.CURDIR}/../common", and use appropriately
- remove .PATH: ${.CURDIR}/../common
- update the various MERGED_SRCS lines to reflect reality
2002-07-21 08:14:46 +00:00
lukem
e3c1695a2b add back comment lost in previous revision 2002-07-21 00:12:28 +00:00
lukem
f478f495f1 - Explicitly reference "install" as "${.CURDIR}/install" as our <bsd.own.mk>
does a ".PHONY" on "install", and this prevents .PATH lookups working for
  that target, so "make" unnecessarily considered the files out of date and
  rebuilt them every time.  (make(1) needs a .NOTPHONY)
- Separate out the TOC dependencies so that a given ${TARG}.type only
  depends upon the appropriate ${TARGET}.type.toc.  Prevents unnecessary
  rebuilding of all the TOCs when you're only generating one target type.
- Remove *.toc.tmp in cleannotes.
2002-07-20 06:59:19 +00:00
wiz
ee9025dec0 Add a comment why the more.toc needs to be generated twice.
XXX: Why do the other TOCs get generated twice? We don't need correct
page numbers there...
2002-06-16 00:30:23 +00:00
lukem
82da8bc9bd remove now-unused targets 2002-06-15 02:15:54 +00:00
lukem
ed8e534c7e yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
2002-05-02 18:02:14 +00:00
lukem
9e5598221a replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version 2002-04-26 15:50:21 +00:00
lukem
6511b77c5f simplify by using stuff from ../Makefile.inc 2002-04-11 06:33:57 +00:00
lukem
811d644d8f don't set the owner or group when installing into $RELEASEDIR 2002-02-09 13:56:48 +00:00
jmc
353e1ce493 Clean this up for a proper cross-build setup.
1. Replace all "groff"'s with $GROFF so the right binary is picked up depending
on new or old toolchain setups and USETOOLS
2. Remove the DESTDIR check where it adds -M. This is pointless as some of the
file in share/tmac have hard coded references to /usr/share/tmac so using the
new ones in $DESTDIR will just point you back into /usr/share anyways...
(the new toolchain has no issue here as it's tmac files all point into
$TOOLDIR. Any old setups should just depend on the local setup instead of
some mix of DESTDIR and old files the -M would have produced).
2001-12-10 05:27:59 +00:00
jhawk
700b43b275 s/MAKETOCS/MKTOCS/ 2001-12-01 17:54:11 +00:00
jhawk
a5c0fa3864 Based on feedback (various), remove the .toc files from CVS,
and instead generate them each and every time (twice!).
Based on a suggestion from Alan Barrett, allow setting MAKETOC=no
to permit rebuilding the install notes without regenerating the
.toc files, to allow more speedy debugging of markup changes.
2001-11-30 22:20:03 +00:00
jhawk
c2c3e49e52 Add a table of contents (TOC) to the release notes.
This makes it _much_ more user-friendly, as it allows users
  to skip to the parts they want easily.
At present, the TOCs are generated files, and can be regenerated
  with "make tocs" (probably has to be run twice to account for
  the size of the table itself).
TOCs are named INSTALL.{PostScript,ASCII,HTML,more}.toc instead of
  INSTALL.{ps,txt,html,more}.toc because that's what \*[format]
  expands to.
2001-11-26 00:19:56 +00:00
mycroft
2737c13aee Nuke gratuitous usage of .for. 2001-01-14 21:45:01 +00:00
mycroft
149f0de4fa Use bsd.man.mk (maybe should be something else) instead of bsd.prog.mk, and
do the cleaning differently.
2001-01-14 21:37:55 +00:00
mycroft
62ea85dad9 Use bsd.own.mk, not bsd.obj.mk. 2001-01-14 21:30:58 +00:00
matt
a2669c50c0 When making the release notes, use the macros in ${DESTDIR} 2000-11-26 02:50:12 +00:00
lukem
6a50c6b116 - depend upon ../common/macros as well
- call groff with -dM instead of -dMACHINE, and change the macro use
  accordingly. remove -dV_S since nothing used it.
2000-10-10 12:51:20 +00:00
lukem
7f6d9c1606 add dinky .pdf target which runs ps2pdf on the .ps source 2000-10-05 09:02:48 +00:00
enami
fce828f34e When output device is ascii, load tmac.tty-char explicity as nroff does,
so that some developer's names are translated saner way.
2000-08-01 01:57:57 +00:00
cjs
81999926fe Include bsd.obj.mk so we can have RELEASEDIR in /etc/mk.conf. 2000-03-08 15:39:48 +00:00
lukem
8c9f01b5c5 - Replace inline mirrors list with a link to
http://www.netbsd.org/Sites/net.html
  It's probably safe to assume that a user wanting access to a mirror
  site can access this URL...
- Highlight that with the latest BIND code you need to now use
	options { version "newfoo"; }
  to change the infoleak string.  (1.3.3 didn't have the infoleak,
  but it crept back into 1.4)
1999-12-08 03:57:29 +00:00
soren
c8eb8949ca Fix pasto. 1999-12-07 22:56:57 +00:00
soren
d12226a14d Use 7-bit ASCII for INSTALL.txt. 1999-12-07 22:33:49 +00:00
soren
84cf103b31 Use -Tlatin1 for output. 1999-12-07 17:58:04 +00:00