head	1.60;
access;
symbols
	netbsd-11-0-RC4:1.60
	netbsd-11-0-RC3:1.60
	netbsd-11-0-RC2:1.60
	netbsd-11-0-RC1:1.60
	perseant-exfatfs-base-20250801:1.60
	netbsd-11:1.60.0.4
	netbsd-11-base:1.60
	netbsd-10-1-RELEASE:1.57
	perseant-exfatfs-base-20240630:1.60
	perseant-exfatfs:1.60.0.2
	perseant-exfatfs-base:1.60
	netbsd-8-3-RELEASE:1.43
	netbsd-9-4-RELEASE:1.43.18.7
	netbsd-10-0-RELEASE:1.57
	netbsd-10-0-RC6:1.57
	netbsd-10-0-RC5:1.57
	netbsd-10-0-RC4:1.57
	netbsd-10-0-RC3:1.57
	netbsd-10-0-RC2:1.57
	netbsd-10-0-RC1:1.57
	netbsd-10:1.57.0.2
	netbsd-10-base:1.57
	netbsd-9-3-RELEASE:1.43.18.7
	cjep_sun2x-base1:1.56
	cjep_sun2x:1.56.0.4
	cjep_sun2x-base:1.56
	cjep_staticlib_x-base1:1.56
	netbsd-9-2-RELEASE:1.43.18.7
	cjep_staticlib_x:1.56.0.2
	cjep_staticlib_x-base:1.56
	netbsd-9-1-RELEASE:1.43.18.7
	phil-wifi-20200421:1.54
	phil-wifi-20200411:1.54
	is-mlppp:1.54.0.2
	is-mlppp-base:1.54
	phil-wifi-20200406:1.54
	netbsd-8-2-RELEASE:1.43
	netbsd-9-0-RELEASE:1.43.18.7
	netbsd-9-0-RC2:1.43.18.7
	netbsd-9-0-RC1:1.43.18.4
	phil-wifi-20191119:1.43
	netbsd-9:1.43.0.18
	netbsd-9-base:1.43
	phil-wifi-20190609:1.43
	netbsd-8-1-RELEASE:1.43
	netbsd-8-1-RC1:1.43
	pgoyette-compat-merge-20190127:1.43
	pgoyette-compat-20190127:1.43
	pgoyette-compat-20190118:1.43
	pgoyette-compat-1226:1.43
	pgoyette-compat-1126:1.43
	pgoyette-compat-1020:1.43
	pgoyette-compat-0930:1.43
	pgoyette-compat-0906:1.43
	netbsd-7-2-RELEASE:1.42.4.1
	pgoyette-compat-0728:1.43
	netbsd-8-0-RELEASE:1.43
	phil-wifi:1.43.0.16
	phil-wifi-base:1.43
	pgoyette-compat-0625:1.43
	netbsd-8-0-RC2:1.43
	pgoyette-compat-0521:1.43
	pgoyette-compat-0502:1.43
	pgoyette-compat-0422:1.43
	netbsd-8-0-RC1:1.43
	pgoyette-compat-0415:1.43
	pgoyette-compat-0407:1.43
	pgoyette-compat-0330:1.43
	pgoyette-compat-0322:1.43
	pgoyette-compat-0315:1.43
	netbsd-7-1-2-RELEASE:1.42.4.1
	pgoyette-compat:1.43.0.14
	pgoyette-compat-base:1.43
	netbsd-7-1-1-RELEASE:1.42.4.1
	matt-nb8-mediatek:1.43.0.12
	matt-nb8-mediatek-base:1.43
	perseant-stdc-iso10646:1.43.0.10
	perseant-stdc-iso10646-base:1.43
	netbsd-8:1.43.0.8
	netbsd-8-base:1.43
	prg-localcount2-base3:1.43
	prg-localcount2-base2:1.43
	prg-localcount2-base1:1.43
	prg-localcount2:1.43.0.6
	prg-localcount2-base:1.43
	pgoyette-localcount-20170426:1.43
	bouyer-socketcan-base1:1.43
	pgoyette-localcount-20170320:1.43
	netbsd-7-1:1.42.4.1.0.6
	netbsd-7-1-RELEASE:1.42.4.1
	netbsd-7-1-RC2:1.42.4.1
	netbsd-7-nhusb-base-20170116:1.42.4.1
	bouyer-socketcan:1.43.0.4
	bouyer-socketcan-base:1.43
	pgoyette-localcount-20170107:1.43
	netbsd-7-1-RC1:1.42.4.1
	pgoyette-localcount-20161104:1.43
	netbsd-7-0-2-RELEASE:1.42.4.1
	localcount-20160914:1.43
	netbsd-7-nhusb:1.42.4.1.0.4
	netbsd-7-nhusb-base:1.42.4.1
	pgoyette-localcount-20160806:1.43
	pgoyette-localcount-20160726:1.43
	pgoyette-localcount:1.43.0.2
	pgoyette-localcount-base:1.43
	netbsd-7-0-1-RELEASE:1.42.4.1
	netbsd-7-0:1.42.4.1.0.2
	netbsd-7-0-RELEASE:1.42.4.1
	netbsd-7-0-RC3:1.42.4.1
	netbsd-7-0-RC2:1.42.4.1
	netbsd-7-0-RC1:1.42.4.1
	netbsd-5-2-3-RELEASE:1.41
	netbsd-5-1-5-RELEASE:1.41
	netbsd-6-0-6-RELEASE:1.41
	netbsd-6-1-5-RELEASE:1.41
	netbsd-7:1.42.0.4
	netbsd-7-base:1.42
	yamt-pagecache-base9:1.42
	yamt-pagecache-tag8:1.41
	netbsd-6-1-4-RELEASE:1.41
	netbsd-6-0-5-RELEASE:1.41
	tls-earlyentropy:1.42.0.2
	tls-earlyentropy-base:1.42
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.42
	riastradh-drm2-base3:1.42
	netbsd-6-1-3-RELEASE:1.41
	netbsd-6-0-4-RELEASE:1.41
	netbsd-5-2-2-RELEASE:1.41
	netbsd-5-1-4-RELEASE:1.41
	netbsd-6-1-2-RELEASE:1.41
	netbsd-6-0-3-RELEASE:1.41
	netbsd-5-2-1-RELEASE:1.41
	netbsd-5-1-3-RELEASE:1.41
	netbsd-6-1-1-RELEASE:1.41
	riastradh-drm2-base2:1.41
	riastradh-drm2-base1:1.41
	riastradh-drm2:1.41.0.30
	riastradh-drm2-base:1.41
	netbsd-6-1:1.41.0.36
	netbsd-6-0-2-RELEASE:1.41
	netbsd-6-1-RELEASE:1.41
	khorben-n900:1.41.0.34
	netbsd-6-1-RC4:1.41
	netbsd-6-1-RC3:1.41
	agc-symver:1.41.0.32
	agc-symver-base:1.41
	netbsd-6-1-RC2:1.41
	netbsd-6-1-RC1:1.41
	yamt-pagecache-base8:1.41
	netbsd-5-2:1.41.0.28
	netbsd-6-0-1-RELEASE:1.41
	yamt-pagecache-base7:1.41
	netbsd-5-2-RELEASE:1.41
	netbsd-5-2-RC1:1.41
	matt-nb6-plus-nbase:1.41
	yamt-pagecache-base6:1.41
	netbsd-6-0:1.41.0.26
	netbsd-6-0-RELEASE:1.41
	netbsd-6-0-RC2:1.41
	tls-maxphys:1.41.0.24
	tls-maxphys-base:1.42
	matt-nb6-plus:1.41.0.22
	matt-nb6-plus-base:1.41
	netbsd-6-0-RC1:1.41
	yamt-pagecache-base5:1.41
	yamt-pagecache-base4:1.41
	netbsd-6:1.41.0.20
	netbsd-6-base:1.41
	netbsd-5-1-2-RELEASE:1.41
	netbsd-5-1-1-RELEASE:1.41
	yamt-pagecache-base3:1.41
	yamt-pagecache-base2:1.41
	yamt-pagecache:1.41.0.18
	yamt-pagecache-base:1.41
	cherry-xenmp:1.41.0.16
	cherry-xenmp-base:1.41
	bouyer-quota2-nbase:1.41
	bouyer-quota2:1.41.0.14
	bouyer-quota2-base:1.41
	matt-mips64-premerge-20101231:1.41
	matt-nb5-mips64-premerge-20101231:1.41
	matt-nb5-pq3:1.41.0.12
	matt-nb5-pq3-base:1.41
	netbsd-5-1:1.41.0.10
	netbsd-5-1-RELEASE:1.41
	netbsd-5-1-RC4:1.41
	matt-nb5-mips64-k15:1.41
	netbsd-5-1-RC3:1.41
	netbsd-5-1-RC2:1.41
	netbsd-5-1-RC1:1.41
	netbsd-5-0-2-RELEASE:1.41
	matt-nb5-mips64-premerge-20091211:1.41
	matt-premerge-20091211:1.41
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.41
	matt-nb4-mips64-k7-u2a-k9b:1.41
	matt-nb5-mips64-u1-k1-k5:1.41
	matt-nb5-mips64:1.41.0.8
	netbsd-5-0-1-RELEASE:1.41
	jym-xensuspend-nbase:1.41
	netbsd-5-0:1.41.0.6
	netbsd-5-0-RELEASE:1.41
	netbsd-5-0-RC4:1.41
	netbsd-5-0-RC3:1.41
	netbsd-5-0-RC2:1.41
	jym-xensuspend:1.41.0.4
	jym-xensuspend-base:1.41
	netbsd-5-0-RC1:1.41
	netbsd-5:1.41.0.2
	netbsd-5-base:1.41
	matt-mips64-base2:1.40
	matt-mips64:1.38.0.8
	netbsd-4-0-1-RELEASE:1.36.4.3
	wrstuden-revivesa-base-3:1.40
	wrstuden-revivesa-base-2:1.40
	wrstuden-fixsa-newbase:1.36.4.3
	wrstuden-revivesa-base-1:1.40
	yamt-pf42-base4:1.40
	yamt-pf42-base3:1.40
	hpcarm-cleanup-nbase:1.40
	yamt-pf42-baseX:1.40
	yamt-pf42-base2:1.40
	wrstuden-revivesa:1.40.0.10
	wrstuden-revivesa-base:1.40
	yamt-pf42:1.40.0.8
	yamt-pf42-base:1.40
	mjf-devfs2:1.40.0.6
	mjf-devfs2-base:1.40
	keiichi-mipv6:1.40.0.4
	keiichi-mipv6-base:1.40
	mjf-devfs:1.40.0.2
	mjf-devfs-base:1.40
	matt-armv6-nbase:1.40
	matt-armv6-prevmlocking:1.38
	wrstuden-fixsa-base-1:1.36.4.3
	netbsd-4-0:1.36.4.3.0.2
	netbsd-4-0-RELEASE:1.36.4.3
	cube-autoconf:1.38.0.6
	cube-autoconf-base:1.38
	netbsd-4-0-RC5:1.36.4.2
	netbsd-4-0-RC4:1.36.4.2
	netbsd-4-0-RC3:1.36.4.2
	netbsd-4-0-RC2:1.36.4.2
	netbsd-4-0-RC1:1.36.4.1
	matt-armv6:1.38.0.4
	matt-armv6-base:1.40
	matt-mips64-base:1.38
	hpcarm-cleanup:1.38.0.2
	hpcarm-cleanup-base:1.40
	netbsd-3-1-1-RELEASE:1.35
	netbsd-3-0-3-RELEASE:1.35
	wrstuden-fixsa:1.36.0.6
	wrstuden-fixsa-base:1.36.4.3
	abandoned-netbsd-4-base:1.36
	abandoned-netbsd-4:1.36.0.2
	netbsd-3-1:1.35.0.12
	netbsd-3-1-RELEASE:1.35
	netbsd-3-0-2-RELEASE:1.35
	netbsd-3-1-RC4:1.35
	netbsd-3-1-RC3:1.35
	netbsd-3-1-RC2:1.35
	netbsd-3-1-RC1:1.35
	netbsd-4:1.36.0.4
	netbsd-4-base:1.36
	netbsd-3-0-1-RELEASE:1.35
	netbsd-3-0:1.35.0.10
	netbsd-3-0-RELEASE:1.35
	netbsd-3-0-RC6:1.35
	netbsd-3-0-RC5:1.35
	netbsd-3-0-RC4:1.35
	netbsd-3-0-RC3:1.35
	netbsd-3-0-RC2:1.35
	netbsd-3-0-RC1:1.35
	netbsd-2-0-3-RELEASE:1.35
	netbsd-2-1:1.35.0.8
	netbsd-2-1-RELEASE:1.35
	netbsd-2-1-RC6:1.35
	netbsd-2-1-RC5:1.35
	netbsd-2-1-RC4:1.35
	netbsd-2-1-RC3:1.35
	netbsd-2-1-RC2:1.35
	netbsd-2-1-RC1:1.35
	netbsd-2-0-2-RELEASE:1.35
	netbsd-3:1.35.0.6
	netbsd-3-base:1.35
	netbsd-2-0-1-RELEASE:1.35
	netbsd-2:1.35.0.4
	netbsd-2-base:1.35
	netbsd-2-0-RELEASE:1.35
	netbsd-2-0-RC5:1.35
	netbsd-2-0-RC4:1.35
	netbsd-2-0-RC3:1.35
	netbsd-2-0-RC2:1.35
	netbsd-2-0-RC1:1.35
	netbsd-2-0:1.35.0.2
	netbsd-2-0-base:1.35
	netbsd-1-6-PATCH002-RELEASE:1.26.2.5
	netbsd-1-6-PATCH002:1.26.2.5
	netbsd-1-6-PATCH002-RC4:1.26.2.5
	netbsd-1-6-PATCH002-RC3:1.26.2.5
	netbsd-1-6-PATCH002-RC2:1.26.2.5
	netbsd-1-6-PATCH002-RC1:1.26.2.5
	netbsd-1-6-PATCH001:1.26.2.5
	netbsd-1-6-PATCH001-RELEASE:1.26.2.5
	netbsd-1-6-PATCH001-RC3:1.26.2.5
	netbsd-1-6-PATCH001-RC2:1.26.2.5
	netbsd-1-6-PATCH001-RC1:1.26.2.5
	fvdl_fs64_base:1.31
	netbsd-1-6-RELEASE:1.26.2.5
	netbsd-1-6-RC3:1.26.2.5
	netbsd-1-6-RC2:1.26.2.5
	netbsd-1-6-RC1:1.26.2.5
	netbsd-1-6:1.26.0.2
	netbsd-1-6-base:1.26
	netbsd-1-5-PATCH003:1.11.4.3
	netbsd-1-5-PATCH002:1.11.4.2
	netbsd-1-5-PATCH001:1.11.4.2
	netbsd-1-5-RELEASE:1.11.4.2
	netbsd-1-5-BETA2:1.11.4.2
	netbsd-1-5-BETA:1.11.4.1
	netbsd-1-4-PATCH003:1.4.2.4
	netbsd-1-5-ALPHA2:1.11.4.1
	netbsd-1-5:1.11.0.4
	netbsd-1-5-base:1.11
	minoura-xpg4dl:1.11.0.2
	minoura-xpg4dl-base:1.11
	netbsd-1-4-PATCH002:1.4.2.2
	wrstuden-devbsize-19991221:1.10
	wrstuden-devbsize:1.6.0.4
	wrstuden-devbsize-base:1.10
	comdex-fall-1999:1.6.0.2
	comdex-fall-1999-base:1.6
	netbsd-1-4-PATCH001:1.4.2.1
	netbsd-1-4-RELEASE:1.4.2.1
	netbsd-1-4:1.4.0.2
	netbsd-1-4-base:1.4;
locks; strict;
comment	@# @;


1.60
date	2024.04.05.23.05.04;	author christos;	state Exp;
branches;
next	1.59;
commitid	tNiXqxVbKg8ND05F;

1.59
date	2023.11.16.18.06.05;	author christos;	state Exp;
branches;
next	1.58;
commitid	qmpFdJpwHIOwvRME;

1.58
date	2023.11.13.21.01.51;	author christos;	state Exp;
branches;
next	1.57;
commitid	zAFc8SkE9RjrAuME;

1.57
date	2021.12.08.13.06.44;	author uwe;	state Exp;
branches;
next	1.56;
commitid	iJQymdo2V4ZzCQjD;

1.56
date	2020.06.23.06.28.01;	author martin;	state Exp;
branches;
next	1.55;
commitid	aokN0MrFFoYFxjdC;

1.55
date	2020.06.16.00.45.56;	author christos;	state Exp;
branches;
next	1.54;
commitid	TDbMlrxYe49pSncC;

1.54
date	2020.01.23.23.59.53;	author uwe;	state Exp;
branches;
next	1.53;
commitid	2jL99iDN4GMMfSTB;

1.53
date	2020.01.05.18.37.54;	author martin;	state Exp;
branches;
next	1.52;
commitid	tKZOeCf3jqTY2xRB;

1.52
date	2019.11.30.00.28.27;	author uwe;	state Exp;
branches;
next	1.51;
commitid	I2SzQg12Zwk27OMB;

1.51
date	2019.11.28.00.06.39;	author uwe;	state Exp;
branches;
next	1.50;
commitid	2XaBvtsBD4wL6yMB;

1.50
date	2019.11.27.23.19.13;	author uwe;	state Exp;
branches;
next	1.49;
commitid	ExyH3LOWH2vqRxMB;

1.49
date	2019.11.27.22.41.41;	author uwe;	state Exp;
branches;
next	1.48;
commitid	lC6ehdnIC1gyExMB;

1.48
date	2019.11.27.19.07.31;	author uwe;	state Exp;
branches;
next	1.47;
commitid	Reth2tG88jG7qwMB;

1.47
date	2019.11.27.15.58.12;	author martin;	state Exp;
branches;
next	1.46;
commitid	gYE29foCxkkHpvMB;

1.46
date	2019.11.27.09.29.25;	author martin;	state Exp;
branches;
next	1.45;
commitid	rQanOfNSclucgtMB;

1.45
date	2019.11.24.11.15.31;	author martin;	state Exp;
branches;
next	1.44;
commitid	BePES94xQkQLW5MB;

1.44
date	2019.11.21.19.23.16;	author martin;	state Exp;
branches;
next	1.43;
commitid	UiYWZno6f1T8KKLB;

1.43
date	2015.05.20.05.19.19;	author snj;	state Exp;
branches
	1.43.16.1
	1.43.18.1;
next	1.42;
commitid	W2s8W2aGc9DDY8my;

1.42
date	2014.01.26.17.00.03;	author apb;	state Exp;
branches
	1.42.4.1;
next	1.41;
commitid	2fuob4kceXs1gEmx;

1.41
date	2008.10.25.22.27.34;	author apb;	state Exp;
branches
	1.41.18.1
	1.41.24.1;
next	1.40;

1.40
date	2007.12.11.20.57.19;	author jnemeth;	state Exp;
branches
	1.40.2.1
	1.40.6.1;
next	1.39;

1.39
date	2007.12.11.18.21.52;	author jnemeth;	state Exp;
branches;
next	1.38;

1.38
date	2007.07.26.15.26.35;	author pavel;	state Exp;
branches
	1.38.4.1
	1.38.8.1;
next	1.37;

1.37
date	2007.05.06.11.00.03;	author pavel;	state Exp;
branches;
next	1.36;

1.36
date	2006.04.22.02.57.29;	author uwe;	state Exp;
branches
	1.36.4.1
	1.36.6.1;
next	1.35;

1.35
date	2004.02.02.18.43.39;	author he;	state Exp;
branches;
next	1.34;

1.34
date	2003.07.26.17.06.52;	author salo;	state Exp;
branches;
next	1.33;

1.33
date	2003.07.10.10.34.11;	author lukem;	state Exp;
branches;
next	1.32;

1.32
date	2003.01.03.15.34.34;	author lukem;	state Exp;
branches;
next	1.31;

1.31
date	2002.07.21.08.14.46;	author lukem;	state Exp;
branches;
next	1.30;

1.30
date	2002.07.21.00.12.28;	author lukem;	state Exp;
branches;
next	1.29;

1.29
date	2002.07.20.06.59.19;	author lukem;	state Exp;
branches;
next	1.28;

1.28
date	2002.06.16.00.30.23;	author wiz;	state Exp;
branches;
next	1.27;

1.27
date	2002.06.15.02.15.54;	author lukem;	state Exp;
branches;
next	1.26;

1.26
date	2002.05.02.18.02.47;	author lukem;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	2002.04.26.15.50.42;	author lukem;	state Exp;
branches;
next	1.24;

1.24
date	2002.04.11.06.33.57;	author lukem;	state Exp;
branches;
next	1.23;

1.23
date	2002.02.09.13.56.52;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	2001.12.10.05.27.59;	author jmc;	state Exp;
branches;
next	1.21;

1.21
date	2001.12.01.17.54.11;	author jhawk;	state Exp;
branches;
next	1.20;

1.20
date	2001.11.30.22.20.03;	author jhawk;	state Exp;
branches;
next	1.19;

1.19
date	2001.11.26.00.19.56;	author jhawk;	state Exp;
branches;
next	1.18;

1.18
date	2001.01.14.21.45.01;	author mycroft;	state Exp;
branches;
next	1.17;

1.17
date	2001.01.14.21.37.55;	author mycroft;	state Exp;
branches;
next	1.16;

1.16
date	2001.01.14.21.30.58;	author mycroft;	state Exp;
branches;
next	1.15;

1.15
date	2000.11.26.02.50.12;	author matt;	state Exp;
branches;
next	1.14;

1.14
date	2000.10.10.12.51.20;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2000.10.05.09.02.48;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2000.08.01.01.57.57;	author enami;	state Exp;
branches;
next	1.11;

1.11
date	2000.03.08.15.39.48;	author cjs;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	99.12.08.03.57.29;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	99.12.07.22.56.57;	author soren;	state Exp;
branches;
next	1.8;

1.8
date	99.12.07.22.33.49;	author soren;	state Exp;
branches;
next	1.7;

1.7
date	99.12.07.17.58.04;	author soren;	state Exp;
branches;
next	1.6;

1.6
date	99.06.30.18.23.02;	author ross;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	99.04.29.19.03.03;	author ross;	state Exp;
branches;
next	1.4;

1.4
date	99.03.06.11.31.51;	author drochner;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.02.13.23.53.56;	author lukem;	state Exp;
branches;
next	1.2;

1.2
date	99.02.07.18.29.51;	author kleink;	state Exp;
branches;
next	1.1;

1.1
date	99.01.13.08.18.44;	author ross;	state Exp;
branches;
next	;

1.43.16.1
date	2020.04.08.14.03.47;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.43.18.1
date	2019.11.21.19.28.38;	author martin;	state Exp;
branches;
next	1.43.18.2;
commitid	AxBs2uihE0uNLKLB;

1.43.18.2
date	2019.11.25.05.50.15;	author msaitoh;	state Exp;
branches;
next	1.43.18.3;
commitid	noyoluARLvGt7cMB;

1.43.18.3
date	2019.11.27.13.36.55;	author msaitoh;	state Exp;
branches;
next	1.43.18.4;
commitid	WlY3MxbqBImDDuMB;

1.43.18.4
date	2019.11.27.16.07.30;	author martin;	state Exp;
branches;
next	1.43.18.5;
commitid	QnHXqO2whdWWsvMB;

1.43.18.5
date	2019.12.09.13.00.22;	author martin;	state Exp;
branches;
next	1.43.18.6;
commitid	LJCfiOmAtxVY22OB;

1.43.18.6
date	2020.01.08.07.53.30;	author msaitoh;	state Exp;
branches;
next	1.43.18.7;
commitid	DMO7ePrdAxn9oRRB;

1.43.18.7
date	2020.01.26.11.19.36;	author martin;	state Exp;
branches;
next	;
commitid	yZLrLcqAyrXYWbUB;

1.42.4.1
date	2015.05.24.11.14.42;	author martin;	state Exp;
branches;
next	;
commitid	w9Ap5nNIPTG0PGmy;

1.41.18.1
date	2014.05.22.12.01.30;	author yamt;	state Exp;
branches;
next	;
commitid	yqlfOuaAhYmASwBx;

1.41.24.1
date	2014.08.19.23.45.41;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.40.2.1
date	2007.12.11.20.57.19;	author jnemeth;	state dead;
branches;
next	1.40.2.2;

1.40.2.2
date	2007.12.11.20.57.20;	author jnemeth;	state Exp;
branches;
next	;

1.40.6.1
date	2008.10.05.20.10.25;	author mjf;	state dead;
branches;
next	;

1.38.4.1
date	2008.01.09.01.27.55;	author matt;	state Exp;
branches;
next	;

1.38.8.1
date	2007.07.26.15.26.35;	author pavel;	state dead;
branches;
next	1.38.8.2;

1.38.8.2
date	2007.07.26.15.26.36;	author pavel;	state Exp;
branches;
next	;

1.36.4.1
date	2007.08.31.20.48.54;	author pavel;	state Exp;
branches;
next	1.36.4.2;

1.36.4.2
date	2007.09.29.17.05.15;	author pavel;	state Exp;
branches;
next	1.36.4.3;

1.36.4.3
date	2007.12.15.19.33.59;	author bouyer;	state Exp;
branches;
next	;

1.36.6.1
date	2007.09.03.06.57.22;	author wrstuden;	state Exp;
branches;
next	1.36.6.2;

1.36.6.2
date	2008.01.06.05.00.12;	author wrstuden;	state Exp;
branches;
next	;

1.26.2.1
date	2002.06.15.02.20.09;	author lukem;	state Exp;
branches;
next	1.26.2.2;

1.26.2.2
date	2002.06.18.13.57.53;	author lukem;	state Exp;
branches;
next	1.26.2.3;

1.26.2.3
date	2002.07.20.07.02.46;	author lukem;	state Exp;
branches;
next	1.26.2.4;

1.26.2.4
date	2002.07.21.00.50.10;	author lukem;	state Exp;
branches;
next	1.26.2.5;

1.26.2.5
date	2002.07.22.05.02.13;	author lukem;	state Exp;
branches;
next	;

1.11.4.1
date	2000.08.01.03.48.37;	author enami;	state Exp;
branches;
next	1.11.4.2;

1.11.4.2
date	2000.11.01.03.44.33;	author tv;	state Exp;
branches;
next	1.11.4.3;

1.11.4.3
date	2002.02.23.21.02.37;	author he;	state Exp;
branches;
next	;

1.6.4.1
date	99.12.27.18.28.27;	author wrstuden;	state Exp;
branches;
next	;

1.4.2.1
date	99.04.29.20.14.55;	author perry;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2000.02.10.21.39.30;	author he;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2000.03.29.22.38.45;	author he;	state Exp;
branches;
next	1.4.2.4;

1.4.2.4
date	2000.09.26.15.24.17;	author he;	state Exp;
branches;
next	;


desc
@@


1.60
log
@specify the paper size for PostScript
@
text
@#	$NetBSD: Makefile.inc,v 1.59 2023/11/16 18:06:05 christos Exp $
#

# Ross Harvey <ross@@NetBSD.org>

.include <bsd.own.mk>	# So we get /etc/mk.conf vars.
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

.if ${MKREPRO_TIMESTAMP:Uno} != "no"
GROFF_TIMESTAMP=--timestamp=${MKREPRO_TIMESTAMP}
DATE_TIMESTAMP=-r ${MKREPRO_TIMESTAMP}
.endif

# Whether or not to regenerate tables of contents
#
MKTOCS?=yes

M?=	${.CURDIR:T}
COMMON=	${.CURDIR}/../common

MAIN=	${COMMON}/main ${EXTRA}
TARG=	INSTALL
TARGS=	${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
TOCS=	${TARG}.PostScript.toc ${TARG}.ASCII.toc ${TARG}.HTML.toc \
	${TARG}.more.toc
SRCS=	${MAIN} ${COMMON}/macros \
	whatis ${COMMON}/contents hardware xfer prep \
	${.CURDIR}/install ${COMMON}/postinstall upgrade \
	${COMMON}/legal.common ${COMMON}/netboot \
	${COMMON}/sysinst \
	${.CURDIR}/../Makefile.inc ${MERGED_SRCS}

whatis: .OPTIONAL

PRESET=	${GFLAGS} -U -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1
PRESET+=	-rmajor=${DISTRIBVER:C/\..*$//}
.if ${USE_XZ_SETS:Uno} == "yes"
PRESET+=	-dsetsuffix=tar.xz
PRESET+=	-dcompressor=xz
.else
PRESET+=	-dsetsuffix=tgz
PRESET+=	-dcompressor=gzip
.endif
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
PRESET+=	-rFOR_RELEASE=1
.else
PRESET+=	-rFOR_RELEASE=0
.endif
.if (${DISTRIBVER:M*.99.*})
PRESET+=	-rRELEASE_BRANCH=0
# make .Nx \*V happy
PRESET+=	-doperating-system-NetBSD-${DISTRIBVER}=${DISTRIBVER}
.elif (${DISTRIBVER:M*.[0-9]*})
PRESET+=	-rRELEASE_BRANCH=1
PRESET+=	-rminor=${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/}
nextmin!=	expr ${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/} + 1
.if exists(${.CURDIR}/../../../doc/CHANGES-${DISTRIBVER:C/\..*$//}.${nextmin})
PRESET+=	-rnextminor=${nextmin}
.endif
.endif
.if defined(BUILDID) && "${BUILDID:M20*Z}" != ""
curdate!=	env LANG="C" TZ="UTC" ${TOOL_DATE} -d "${BUILDID:C/[0-9][0-9][0-9][0-9]Z$//}" "+%b %d, %Y"
.else
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
.error "No release date could be derived from BUILDID"
.else
curdate!=	env LANG="C" TZ="UTC" ${TOOL_DATE} ${DATE_TIMESTAMP} "+%b %d, %Y"
.endif
.endif
PRESET+=	-dcur_date="${curdate}"

POST_PLAIN= -P-b -P-u -P-o

ARGS_PS=	${PRESET} -dformat=PostScript ${ROFF_PAGESIZE}
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -mtty-char
ARGS_HTML=	${PRESET} -dformat=HTML ${POST_PLAIN} -Tlatin1 -ww
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii -mtty-char

#
# For example...
#
#	.if ri386 ...stuff...
#	.Ss "Install notes for NetBSD/\*[MACHINE]"
#

all: ${TARGS}

.if ${MKTOCS} != "no"
TOC.ps=		${TOCS:M*.PostScript.*}
TOC.txt=	${TOCS:M*.ASCII.*}
TOC.html=	${TOCS:M*.HTML.*}
TOC.more=	${TOCS:M*.more.*}
.endif

REMOVE_CREATION_DATE= ${TOOL_SED} -e '/^%%CreationDate:/d'

${TARG}.ps: ${SRCS} ${TOC.ps} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_PS} ${GROFF_TIMESTAMP} -mdoc      ${MAIN} \
	    ${${MKREPRO:Uno} == "yes":? | ${REMOVE_CREATION_DATE} :} \
	    > $@@

${TARG}.pdf: ${TARG}.ps
	ps2pdf ${TARG}.ps $@@

${TARG}.txt: ${SRCS} ${TOC.txt} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_TXT} ${GROFF_TIMESTAMP}  -mdoc      ${MAIN} > $@@

${TARG}.html: ${SRCS} ${TOC.html} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_HTML} ${GROFF_TIMESTAMP} -mdoc2html ${MAIN} > $@@

${TARG}.more: ${SRCS} ${TOC.more} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_MORE} ${GROFF_TIMESTAMP} -mdoc      ${MAIN} > $@@


# Rules to build the table of contents (.toc) files.  For the
# PostScript version it's generated twice to take into account the
# space taken by the TOC itself.  Other versions are not paginated.

${TARG}.PostScript.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} ${GROFF_TIMESTAMP} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} ${GROFF_TIMESTAMP} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@

${TARG}.ASCII.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} ${GROFF_TIMESTAMP} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@

${TARG}.HTML.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} ${GROFF_TIMESTAMP} -mdoc2html ${MAIN} > /dev/null
	mv -f $@@.tmp $@@

${TARG}.more.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} ${GROFF_TIMESTAMP} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@


release: check_RELEASEDIR .WAIT ${TARGS}
	${INSTALL} -d -m 755 ${RELEASEDIR}/${RELEASEMACHINEDIR}
	${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/${RELEASEMACHINEDIR}

cleannotes:
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS} \
	    ${TOCS:S/.toc$/.toc.tmp/g}

clean cleandir distclean: cleannotes
@


1.59
log
@Set the timezone too when invoking date with a timestamp because it can
be affected too:
$ env TZ=UTC date -r 1700157305
Thu Nov 16 17:55:05 UTC 2023
$ env TZ=UTC24:24:24 date -r 1700157305
Wed Nov 15 17:30:41 UTC 2023
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.58 2023/11/13 21:01:51 christos Exp $
d74 1
a74 1
ARGS_PS=	${PRESET} -dformat=PostScript
@


1.58
log
@Use TOOL_DATE (Jan-Benedict Glaw)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.57 2021/12/08 13:06:44 uwe Exp $
d62 1
a62 1
curdate!=	env LANG="C" ${TOOL_DATE} -d "${BUILDID:C/[0-9][0-9][0-9][0-9]Z$//}" "+%b %d, %Y"
d67 1
a67 1
curdate!=	env LANG="C" ${TOOL_DATE} ${DATE_TIMESTAMP} "+%b %d, %Y"
@


1.57
log
@Make .Nx \*V happy for current builds.

I'm not sure why mdoc complains here (not the technical reason, but
the pragmatic purpose).  My best guess is that it wants to catch
mistakes like .Fx 1.6.1 (instead of .Nx 1.6.1).  I'm not entirely
convinced this doesn't create more problems that it solves.

No objections in the 15 years since this was proposed netbsd-docs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.56 2020/06/23 06:28:01 martin Exp $
d62 1
a62 1
curdate!=	env LANG="C" date -d "${BUILDID:C/[0-9][0-9][0-9][0-9]Z$//}" "+%b %d, %Y"
d67 1
a67 1
curdate!=	env LANG="C" date ${DATE_TIMESTAMP} "+%b %d, %Y"
@


1.56
log
@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)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.55 2020/06/16 00:45:56 christos Exp $
d51 2
@


1.55
log
@For MKREPRO builds:
1. compute cur_date from the timestamp
2. pass the date to groff so that it can set its registers
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.54 2020/01/23 23:59:53 uwe Exp $
d39 1
d42 1
@


1.54
log
@Use -mdoc2html to generate HTML TOC to avoids warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.53 2020/01/05 18:37:54 martin Exp $
d9 5
d63 1
a63 1
curdate!=	env LANG="C" date "+%b %d, %Y"
d94 1
a94 1
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} \
d102 1
a102 1
	${TOOL_GROFF} ${ARGS_TXT}  -mdoc      ${MAIN} > $@@
d105 1
a105 1
	${TOOL_GROFF} ${ARGS_HTML} -mdoc2html ${MAIN} > $@@
d108 1
a108 1
	${TOOL_GROFF} ${ARGS_MORE} -mdoc      ${MAIN} > $@@
d116 1
a116 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d118 1
a118 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d122 1
a122 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} > /dev/null
d126 1
a126 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc2html ${MAIN} > /dev/null
d130 1
a130 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} > /dev/null
@


1.53
log
@PR install/54836: fix broken conditional, passing the wrong set name suffix
to groff.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.52 2019/11/30 00:28:27 uwe Exp $
d121 1
a121 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} > /dev/null
@


1.52
log
@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).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.51 2019/11/28 00:06:39 uwe Exp $
d32 1
a32 1
.if ${USE_XZ_SETS}
@


1.51
log
@Use .open/.write instead of .tm to emit TOC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.50 2019/11/27 23:19:13 uwe Exp $
d106 3
a108 3
# Rules to build the table of contents (.toc) files.
# They are generated twice to take into account the
# space taken by the TOC itself.
a118 2
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@
a126 2
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} > /dev/null
	mv -f $@@.tmp $@@
@


1.50
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.49 2019/11/27 22:41:41 uwe Exp $
a109 6
# TOC is emitted with .tm on groff's stderr, divert those lines to stdout.
# NB: /dev/stderr is nawk's internal designation, not /dev/stderr file.
# TODO: use .open/.write instead.
TOCPROC = 2>&1 >/dev/null | \
	${TOOL_AWK} '{ if ($$1 == ".Ti") print; else print > "/dev/stderr"; }'

d111 1
a111 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d113 1
a113 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d117 1
a117 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d119 1
a119 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d123 1
a123 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d127 1
a127 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d129 1
a129 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
@


1.49
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.48 2019/11/27 19:07:31 uwe Exp $
d16 1
a16 1
MAIN=	${COMMON}/main ${COMMON}/macros ${EXTRA}
d21 2
a22 1
SRCS=	${MAIN} whatis ${COMMON}/contents hardware xfer prep \
@


1.48
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2019/11/27 15:58:12 martin Exp $
a107 1
#
d109 5
a113 1
TOCPROC=	   2>&1 >/dev/null | ${TOOL_GREP} -e '^\.Ti'
@


1.47
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.46 2019/11/27 09:29:25 martin Exp $
d110 1
a110 3
TOCPROC=	  2>&1 >/dev/null |\
	   ${TOOL_SED} -n -e 's/"//g' \
	   -e '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
@


1.46
log
@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
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.45 2019/11/24 11:15:31 martin Exp $
d110 3
a112 1
TOCPROC=	   2>&1 >/dev/null | ${TOOL_GREP} -e '^\.Ti '
@


1.45
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.44 2019/11/21 19:23:16 martin Exp $
d54 3
d59 1
d110 1
a110 2
TOCPROC=	   2>&1 >/dev/null |\
           ${TOOL_SED} -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
a126 2
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
@


1.44
log
@Pass the set suffix (either .tgz or .tar.xz) from the makefile.
Document the rescue set.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43 2015/05/20 05:19:19 snj Exp $
d30 1
d36 21
@


1.43
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.42 2014/01/26 17:00:03 apb Exp $
d30 5
@


1.43.16.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d16 1
a16 1
MAIN=	${COMMON}/main ${EXTRA}
d21 1
a21 2
SRCS=	${MAIN} ${COMMON}/macros \
	whatis ${COMMON}/contents hardware xfer prep \
a29 31
PRESET+=	-rmajor=${DISTRIBVER:C/\..*$//}
.if ${USE_XZ_SETS:Uno} == "yes"
PRESET+=	-dsetsuffix=tar.xz
.else
PRESET+=	-dsetsuffix=tgz
.endif
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
PRESET+=	-rFOR_RELEASE=1
.else
PRESET+=	-rFOR_RELEASE=0
.endif
.if (${DISTRIBVER:M*.99.*})
PRESET+=	-rRELEASE_BRANCH=0
.elif (${DISTRIBVER:M*.[0-9]*})
PRESET+=	-rRELEASE_BRANCH=1
PRESET+=	-rminor=${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/}
nextmin!=	expr ${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/} + 1
.if exists(${.CURDIR}/../../../doc/CHANGES-${DISTRIBVER:C/\..*$//}.${nextmin})
PRESET+=	-rnextminor=${nextmin}
.endif
.endif
.if defined(BUILDID) && "${BUILDID:M20*Z}" != ""
curdate!=	env LANG="C" date -d "${BUILDID:C/[0-9][0-9][0-9][0-9]Z$//}" "+%b %d, %Y"
.else
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
.error "No release date could be derived from BUILDID"
.else
curdate!=	env LANG="C" date "+%b %d, %Y"
.endif
.endif
PRESET+=	-dcur_date="${curdate}"
d74 7
a80 3
# Rules to build the table of contents (.toc) files.  For the
# PostScript version it's generated twice to take into account the
# space taken by the TOC itself.  Other versions are not paginated.
d83 1
a83 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d85 1
a85 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d89 3
a91 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} > /dev/null
d95 3
a97 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc2html ${MAIN} > /dev/null
d101 3
a103 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} > /dev/null
@


1.43.18.1
log
@Pull up the following revisions:

	distrib/notes/Makefile.inc			1.44
	distrib/notes/acorn32/contents			1.5
	distrib/notes/alpha/contents			1.19
	distrib/notes/amd64/contents			1.8
	distrib/notes/amiga/contents			1.23
	distrib/notes/amiga/install			1.37
	distrib/notes/arc/contents			1.5
	distrib/notes/atari/contents			1.23
	distrib/notes/atari/xfer			1.18
	distrib/notes/bebox/contents			1.5
	distrib/notes/cats/contents			1.5
	distrib/notes/common/contents			1.179
	distrib/notes/common/legal.common		1.99
	distrib/notes/common/main			1.552
	distrib/notes/common/main			1.553
	distrib/notes/common/netboot			1.37
	distrib/notes/common/postinstall		1.84
	distrib/notes/common/sysinst			1.108
	distrib/notes/common/xfer			1.76
	distrib/notes/emips/contents			1.5
	distrib/notes/emips/install			1.3
	distrib/notes/evbarm/contents			1.5
	distrib/notes/evbarm/install			1.10
	distrib/notes/evbppc/contents			1.6
	distrib/notes/ews4800mips/contents		1.5
	distrib/notes/hp300/contents			1.20
	distrib/notes/hp300/upgrade			1.20
	distrib/notes/hpcarm/contents			1.6
	distrib/notes/hpcmips/contents			1.13
	distrib/notes/hpcsh/contents			1.6
	distrib/notes/hppa/contents			1.5
	distrib/notes/i386/contents			1.32
	distrib/notes/landisk/contents			1.6
	distrib/notes/mac68k/contents			1.23
	distrib/notes/mac68k/install			1.31
	distrib/notes/mac68k/prep			1.18
	distrib/notes/mac68k/xfer			1.21
	distrib/notes/macppc/contents			1.17
	distrib/notes/macppc/install			1.42
	distrib/notes/mmeye/contents			1.6
	distrib/notes/mvme68k/contents			1.16
	distrib/notes/mvme68k/xfer			1.20
	distrib/notes/news68k/contents			1.9
	distrib/notes/newsmips/contents			1.5
	distrib/notes/next68k/contents			1.10
	distrib/notes/ofppc/contents			1.6
	distrib/notes/pmax/contents			1.20
	distrib/notes/pmax/install			1.43
	distrib/notes/prep/contents			1.5
	distrib/notes/rs6000/contents			1.5
	distrib/notes/sandpoint/contents		1.5
	distrib/notes/sgimips/contents			1.5
	distrib/notes/sgimips/install			1.11
	distrib/notes/shark/contents			1.5
	distrib/notes/shark/install			1.6
	distrib/notes/sparc/contents			1.24
	distrib/notes/sparc/install			1.59
	distrib/notes/sparc64/contents			1.8
	distrib/notes/sun2/contents			1.5
	distrib/notes/sun3/contents			1.19
	distrib/notes/sun3/upgrade			1.15
	distrib/notes/vax/contents			1.14
	distrib/notes/vax/xfer				1.15
	distrib/notes/x68k/contents			1.20

Add missing .bullet) and replace some versions (more todo later)
Pass the set suffix (either .tgz or .tar.xz) from the makefile.
Document the rescue set.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43 2015/05/20 05:19:19 snj Exp $
a29 5
.if ${USE_XZ_SETS}
PRESET+=	-dsetsuffix=tar.xz
.else
PRESET+=	-dsetsuffix=tgz
.endif
@


1.43.18.2
log
@Pull up following revision(s) (requested by martin in ticket #471):
	distrib/notes/sandpoint/xfer: revision 1.4
	distrib/notes/newsmips/contents: revision 1.6
	distrib/notes/Makefile.inc: revision 1.45
	distrib/notes/landisk/contents: revision 1.7
	distrib/notes/sparc/contents: revision 1.25
	distrib/notes/arc/contents: revision 1.6
	distrib/notes/sun2/contents: revision 1.6
	distrib/notes/common/sysinst: revision 1.109
	distrib/notes/common/postinstall: revision 1.85
	distrib/notes/vax/contents: revision 1.15
	distrib/notes/mac68k/contents: revision 1.24
	distrib/notes/alpha/contents: revision 1.20
	distrib/notes/cats/contents: revision 1.6
	distrib/notes/sparc64/contents: revision 1.9
	distrib/notes/mvme68k/contents: revision 1.17
	distrib/notes/i386/contents: revision 1.33
	distrib/notes/common/main: revision 1.554
	distrib/notes/rs6000/contents: revision 1.6
	distrib/notes/hpcmips/contents: revision 1.14
	distrib/notes/evbppc/contents: revision 1.7
	distrib/notes/hpcarm/contents: revision 1.7
	distrib/notes/emips/contents: revision 1.6
	distrib/notes/sun3/contents: revision 1.20
	distrib/notes/macppc/contents: revision 1.18
	distrib/notes/amd64/contents: revision 1.9
	distrib/notes/x68k/contents: revision 1.21
	distrib/notes/sgimips/contents: revision 1.6
	distrib/notes/sandpoint/contents: revision 1.6
	distrib/notes/mmeye/contents: revision 1.7
	distrib/notes/arc/prep: revision 1.5
	distrib/notes/pmax/contents: revision 1.21
	distrib/notes/shark/contents: revision 1.6
	distrib/notes/news68k/contents: revision 1.10
	distrib/notes/cats/prep: revision 1.14
	distrib/notes/hp300/contents: revision 1.21
	distrib/notes/common/upgrade: revision 1.31
	distrib/notes/next68k/contents: revision 1.11
	distrib/notes/amiga/contents: revision 1.24
	distrib/notes/common/contents: revision 1.180
	distrib/notes/evbarm/contents: revision 1.6
	distrib/notes/sparc64/upgrade: revision 1.7
	distrib/notes/hppa/contents: revision 1.6
	distrib/notes/acorn32/contents: revision 1.6
	distrib/notes/ofppc/contents: revision 1.7
	distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.21
	distrib/notes/atari/contents: revision 1.24
	distrib/notes/bebox/contents: revision 1.6
	distrib/notes/prep/contents: revision 1.6
	distrib/notes/hpcsh/contents: revision 1.7
	distrib/notes/ews4800mips/contents: revision 1.6
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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43.18.1 2019/11/21 19:28:38 martin Exp $
a29 1
PRESET+=	-rmajor=${DISTRIBVER:C/\..*$//}
a34 21
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
PRESET+=	-rFOR_RELEASE=1
.else
PRESET+=	-rFOR_RELEASE=0
.endif
.if (${DISTRIBVER:M*.99.*})
PRESET+=	-rRELEASE_BRANCH=0
.elif (${DISTRIBVER:M*.[0-9]*})
PRESET+=	-rRELEASE_BRANCH=1
PRESET+=	-rminor=${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/}
nextmin!=	expr ${DISTRIBVER:C/^[0-9]+\.([0-9])+.*$/\1/} + 1
.if exists(${.CURDIR}/../../../doc/CHANGES-${DISTRIBVER:C/\..*$//}.${nextmin})
PRESET+=	-rnextminor=${nextmin}
.endif
.endif
.if defined(BUILDID) && "${BUILDID:M20*Z}" != ""
curdate!=	env LANG="C" date -d "${BUILDID:C/[0-9][0-9][0-9][0-9]Z$//}" "+%b %d, %Y"
.else
curdate!=	env LANG="C" date "+%b %d, %Y"
.endif
PRESET+=	-dcur_date="${curdate}"
@


1.43.18.3
log
@Pull up following revision(s) (requested by martin in ticket #489):
	distrib/notes/Makefile.inc: revision 1.46
	distrib/notes/common/postinstall: revision 1.86
	distrib/notes/sparc64/prep: revision 1.16
	distrib/notes/common/netboot: revision 1.38
	distrib/notes/common/main: revision 1.555
	distrib/notes/common/main: revision 1.556
	distrib/notes/common/main: revision 1.557
	distrib/notes/common/macros: revision 1.44
	distrib/notes/common/sysinst: revision 1.110
	distrib/notes/sparc/prep: revision 1.28
	distrib/notes/sparc/prep: revision 1.29
	distrib/notes/common/list-portmasters.pl: file removal
Remove list-portmasters.pl script.
We dropped that list from "main" some time ago.
Quote long .Ss2 title to avoid troff's limitation.
Troff is limited to 9 macro parameters and this title is 10 words, so
we lose the last word here when we pass arguments around.  We have
more titles like that but for now I wanted to commit only one just to
flag the problem.
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
Add "Oxford comma"
Improve heading a bit.  While here, use quotes to group some of the
words to avoid the 9-arg limitation of .Ss
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43.18.2 2019/11/25 05:50:15 msaitoh Exp $
a53 3
.if ${NETBSD_OFFICIAL_RELEASE:Uno} == "yes"
.error "No release date could be derived from BUILDID"
.else
a55 1
.endif
d106 2
a107 1
TOCPROC=	   2>&1 >/dev/null | ${TOOL_GREP} -e '^\.Ti '
d124 2
@


1.43.18.4
log
@Pull up the following revision:

	distrib/notes/Makefile.inc		1.47

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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2019/11/27 15:58:12 martin Exp $
d110 1
a110 3
TOCPROC=	  2>&1 >/dev/null |\
	   ${TOOL_SED} -n -e 's/"//g' \
	   -e '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
@


1.43.18.5
log
@Pull up the following revisions, requested by uwe in ticket #523:

	distrib/notes/Makefile.inc                      up to 1.52
	distrib/notes/common/macros                     up to 1.54

Improve table of contents.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.52 2019/11/30 00:28:27 uwe Exp $
d16 1
a16 1
MAIN=	${COMMON}/main ${EXTRA}
d21 1
a21 2
SRCS=	${MAIN} ${COMMON}/macros \
	whatis ${COMMON}/contents hardware xfer prep \
d105 8
a112 3
# Rules to build the table of contents (.toc) files.  For the
# PostScript version it's generated twice to take into account the
# space taken by the TOC itself.  Other versions are not paginated.
d115 1
a115 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d117 1
a117 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} > /dev/null
d121 3
a123 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} > /dev/null
d127 1
a127 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} > /dev/null
d131 3
a133 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} > /dev/null
@


1.43.18.6
log
@Pull up following revision(s) (requested by martin in ticket #608):
	distrib/notes/Makefile.inc: revision 1.53
PR install/54836: fix broken conditional, passing the wrong set name suffix
to groff.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43.18.5 2019/12/09 13:00:22 martin Exp $
d32 1
a32 1
.if ${USE_XZ_SETS:Uno} == "yes"
@


1.43.18.7
log
@Pull up following revision(s) (requested by uwe in ticket #652):

	distrib/notes/Makefile.inc: revision 1.54
	distrib/notes/common/main: revision 1.561
	distrib/notes/common/main: revision 1.562
	share/tmac/doc2html: revision 1.71

Use .Os NetBSD/\*M \*V to get more informative footer.

Provide ability to override <title>

If \*[title-section] is non-empty, use it to override the title
instead of appending it.  Nothing in the tree uses title-section
currently, so it shouldn't affect any existing document.

This override will be used by the installation notes where the default
title is less than helpful.

Override HTML <title> to something more informative.
Requested by martin@@

Use -mdoc2html to generate HTML TOC to avoids warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43.18.6 2020/01/08 07:53:30 msaitoh Exp $
d121 1
a121 1
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc2html ${MAIN} > /dev/null
@


1.42
log
@For MKREPRO, remove the "%%CreationDate:" comment line from
PostScript output files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.41 2008/10/25 22:27:34 apb Exp $
d23 1
a23 1
	${COMMON}/legal.common legal ${COMMON}/netboot \
@


1.42.4.1
log
@Pull up following revision(s) (requested by snj in ticket #799):
	distrib/notes/Makefile.inc: revision 1.43
	distrib/notes/acorn26/contents: revision 1.2
	distrib/notes/acorn26/legal: delete
	distrib/notes/acorn32/contents: revision 1.2
	distrib/notes/acorn32/hardware: revision 1.3
	distrib/notes/acorn32/legal: delete
	distrib/notes/acorn32/prep: revision 1.15
	distrib/notes/acorn32/prep.RISCOS: revision 1.23
	distrib/notes/alpha/contents: revision 1.16
	distrib/notes/alpha/hardware: revision 1.18
	distrib/notes/alpha/legal: delete
	distrib/notes/amd64/contents: revisions 1.4, 1.5
	distrib/notes/amd64/legal: delete
	distrib/notes/amiga/contents: revision 1.20
	distrib/notes/amiga/legal: delete
	distrib/notes/arc/contents: revision 1.2
	distrib/notes/arc/legal: delete
	distrib/notes/atari/contents: revision 1.20
	distrib/notes/atari/legal: delete
	distrib/notes/bebox/contents: revision 1.2
	distrib/notes/bebox/hardware: revision 1.2
	distrib/notes/bebox/legal: delete
	distrib/notes/cats/contents: revision 1.2
	distrib/notes/cats/legal: delete
	distrib/notes/common/legal.common: revisions 1.93-1.96
	distrib/notes/common/list-setsizes.sh: delete
	distrib/notes/common/macros: revisions 1.41, 1.42
	distrib/notes/common/main: revisions 1.519-1.521
	distrib/notes/common/netboot: revision 1.36
	distrib/notes/common/postinstall: revision 1.80, 1.81
	distrib/notes/common/sysinst: revisions 1.105, 1.106
	distrib/notes/common/upgrade: revisions 1.29, 1.30
	distrib/notes/common/xfer: revision 1.74
	distrib/notes/emips/contents: revision 1.2
	distrib/notes/emips/hardware: revision 1.2
	distrib/notes/emips/install: revision 1.2
	distrib/notes/emips/legal: delete
	distrib/notes/evbarm/contents: revision 1.2
	distrib/notes/evbarm/legal: delete
	distrib/notes/evbppc/contents: revision 1.3
	distrib/notes/evbppc/legal: delete
	distrib/notes/ews4800mips/contents: revision 1.2
	distrib/notes/ews4800mips/legal: delete
	distrib/notes/hp300/contents: revision 1.17
	distrib/notes/hp300/legal: delete
	distrib/notes/hpcarm/contents: revision 1.3
	distrib/notes/hpcarm/legal: delete
	distrib/notes/hpcmips/contents: revision 1.10
	distrib/notes/hpcmips/legal: delete
	distrib/notes/hpcsh/contents: revision 1.3
	distrib/notes/hpcsh/legal: delete
	distrib/notes/hppa/contents: revision 1.2
	distrib/notes/hppa/legal: delete
	distrib/notes/i386/contents: revision 1.29
	distrib/notes/i386/legal: delete
	distrib/notes/landisk/contents: revision 1.3
	distrib/notes/landisk/legal: delete
	distrib/notes/mac68k/contents: revision 1.20
	distrib/notes/mac68k/hardware: revision 1.25
	distrib/notes/mac68k/legal: delete
	distrib/notes/mac68k/prep: revision 1.17
	distrib/notes/macppc/contents: revision 1.11
	distrib/notes/macppc/hardware: revision 1.48
	distrib/notes/macppc/legal: delete
	distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.18
	distrib/notes/mmeye/contents: revision 1.3
	distrib/notes/mmeye/legal: delete
	distrib/notes/mvme68k/contents: revision 1.13
	distrib/notes/mvme68k/legal: delete
	distrib/notes/mvme68k/xfer: revision 1.18
	distrib/notes/news68k/contents: revision 1.6
	distrib/notes/news68k/legal: delete
	distrib/notes/newsmips/contents: revision 1.2
	distrib/notes/newsmips/legal: delete
	distrib/notes/next68k/contents: revision 1.7
	distrib/notes/next68k/legal: delete
	distrib/notes/ofppc/contents: revision 1.3
	distrib/notes/ofppc/legal: delete
	distrib/notes/pmax/contents: revision 1.17
	distrib/notes/pmax/hardware: revision 1.18
	distrib/notes/pmax/legal: delete
	distrib/notes/prep/contents: revision 1.2
	distrib/notes/prep/hardware: revision 1.5
	distrib/notes/prep/legal: delete
	distrib/notes/prep/upgrade: revision 1.2
	distrib/notes/rs6000/contents: revision 1.2
	distrib/notes/rs6000/legal: delete
	distrib/notes/sandpoint/contents: revision 1.2
	distrib/notes/sandpoint/legal: delete
	distrib/notes/sgimips/contents: revision 1.2
	distrib/notes/sgimips/legal: delete
	distrib/notes/shark/contents: revision 1.2
	distrib/notes/shark/legal: delete
	distrib/notes/sparc/contents: revision 1.21
	distrib/notes/sparc/hardware: revision 1.37
	distrib/notes/sparc/legal: delete
	distrib/notes/sparc/prep: revision 1.27
	distrib/notes/sparc64/Makefile: revision 1.4
	distrib/notes/sparc64/contents: revision 1.5
	distrib/notes/sparc64/hardware: revision 1.28
	distrib/notes/sparc64/legal: delete
	distrib/notes/sun2/contents: revision 1.2
	distrib/notes/sun2/legal: delete
	distrib/notes/sun3/contents: revision 1.16
	distrib/notes/sun3/legal: delete
	distrib/notes/vax/contents: revision 1.11
	distrib/notes/vax/hardware: revision 1.11
	distrib/notes/vax/legal: delete
	distrib/notes/x68k/contents: revision 1.17
	distrib/notes/x68k/hardware: revision 1.18
	distrib/notes/x68k/legal: delete
	distrib/notes/xen/legal: delete
Remove reference to a 14 year old IP address for ftp.NetBSD.org.
This is not a joke.
--
mention etcupdate and reorder a bit
--
first pass de-suckification for 2015. modernize content a bit, fix dirty
rotten lies, improve wording, sync legalese with reality, yada yada yada.
--
This product includes software developed by Yasushi Yamasaki.
--
- update upgrade issues:
  + ARM ABI change
  + new users
  + new groups
- add modules set where missing
- formatting improvements
- note that rtsol{,d} will be gone in the future
- fix raw partition info
- update sparc64 hardware support
- remove note about sparc SMP support being broken
- update some size requirements (still lots of ancient bogus RAM
  minimums lingering -- HI PORTMASTERS!)
- various other minor content modernization
- whitespace fixes
--
finish removing the set size stuff, which was thrown out four years ago.
--
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.
--
don't look for now-gone sparc/legal
--
restore rcsid accidentally deleted in previous
--
bah. this time without a typo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.42 2014/01/26 17:00:03 apb Exp $
d23 1
a23 1
	${COMMON}/legal.common ${COMMON}/netboot \
@


1.41
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.40 2007/12/11 20:57:19 jnemeth Exp $
d54 1
d57 3
a59 1
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} > $@@
@


1.41.24.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a53 1
REMOVE_CREATION_DATE= ${TOOL_SED} -e '/^%%CreationDate:/d'
d56 1
a56 3
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} \
	    ${${MKREPRO:Uno} == "yes":? | ${REMOVE_CREATION_DATE} :} \
	    > $@@
@


1.41.18.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.41 2008/10/25 22:27:34 apb Exp $
a53 1
REMOVE_CREATION_DATE= ${TOOL_SED} -e '/^%%CreationDate:/d'
d56 1
a56 3
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} \
	    ${${MKREPRO:Uno} == "yes":? | ${REMOVE_CREATION_DATE} :} \
	    > $@@
@


1.40
log
@add common/sysinst to SRCS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.39 2007/12/11 18:21:52 jnemeth Exp $
d77 1
a77 1
           sed -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
@


1.40.2.1
log
@file Makefile.inc was added on branch mjf-devfs on 2007-12-11 20:57:20 +0000
@
text
@d1 112
@


1.40.2.2
log
@add common/sysinst to SRCS
@
text
@a0 112
#	$NetBSD: Makefile.inc,v 1.40 2007/12/11 20:57:19 jnemeth Exp $
#

# Ross Harvey <ross@@NetBSD.org>

.include <bsd.own.mk>	# So we get /etc/mk.conf vars.
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

# Whether or not to regenerate tables of contents
#
MKTOCS?=yes

M?=	${.CURDIR:T}
COMMON=	${.CURDIR}/../common

MAIN=	${COMMON}/main ${COMMON}/macros ${EXTRA}
TARG=	INSTALL
TARGS=	${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
TOCS=	${TARG}.PostScript.toc ${TARG}.ASCII.toc ${TARG}.HTML.toc \
	${TARG}.more.toc
SRCS=	${MAIN} whatis ${COMMON}/contents hardware xfer prep \
	${.CURDIR}/install ${COMMON}/postinstall upgrade \
	${COMMON}/legal.common legal ${COMMON}/netboot \
	${COMMON}/sysinst \
	${.CURDIR}/../Makefile.inc ${MERGED_SRCS}

whatis: .OPTIONAL

PRESET=	${GFLAGS} -U -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1

POST_PLAIN= -P-b -P-u -P-o

ARGS_PS=	${PRESET} -dformat=PostScript
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -mtty-char
ARGS_HTML=	${PRESET} -dformat=HTML ${POST_PLAIN} -Tlatin1 -ww
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii -mtty-char

#
# For example...
#
#	.if ri386 ...stuff...
#	.Ss "Install notes for NetBSD/\*[MACHINE]"
#

all: ${TARGS}

.if ${MKTOCS} != "no"
TOC.ps=		${TOCS:M*.PostScript.*}
TOC.txt=	${TOCS:M*.ASCII.*}
TOC.html=	${TOCS:M*.HTML.*}
TOC.more=	${TOCS:M*.more.*}
.endif


${TARG}.ps: ${SRCS} ${TOC.ps} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} > $@@

${TARG}.pdf: ${TARG}.ps
	ps2pdf ${TARG}.ps $@@

${TARG}.txt: ${SRCS} ${TOC.txt} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_TXT}  -mdoc      ${MAIN} > $@@

${TARG}.html: ${SRCS} ${TOC.html} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_HTML} -mdoc2html ${MAIN} > $@@

${TARG}.more: ${SRCS} ${TOC.more} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_MORE} -mdoc      ${MAIN} > $@@


# Rules to build the table of contents (.toc) files.
# They are generated twice to take into account the
# space taken by the TOC itself.
#

TOCPROC=	   2>&1 >/dev/null |\
           sed -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'

${TARG}.PostScript.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.ASCII.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.HTML.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.more.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@


release: check_RELEASEDIR .WAIT ${TARGS}
	${INSTALL} -d -m 755 ${RELEASEDIR}/${RELEASEMACHINEDIR}
	${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/${RELEASEMACHINEDIR}

cleannotes:
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS} \
	    ${TOCS:S/.toc$/.toc.tmp/g}

clean cleandir distclean: cleannotes
@


1.40.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.40 2007/12/11 20:57:19 jnemeth Exp $
@


1.39
log
@add common/netboot to SRCS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.38 2007/07/26 15:26:35 pavel Exp $
d24 1
@


1.38
log
@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@@.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.37 2007/05/06 11:00:03 pavel Exp $
d23 1
a23 1
	${COMMON}/legal.common legal \
@


1.38.8.1
log
@file Makefile.inc was added on branch matt-mips64 on 2007-07-26 15:26:36 +0000
@
text
@d1 111
@


1.38.8.2
log
@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@@.
@
text
@a0 111
#	$NetBSD: Makefile.inc,v 1.38 2007/07/26 15:26:35 pavel Exp $
#

# Ross Harvey <ross@@NetBSD.org>

.include <bsd.own.mk>	# So we get /etc/mk.conf vars.
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

# Whether or not to regenerate tables of contents
#
MKTOCS?=yes

M?=	${.CURDIR:T}
COMMON=	${.CURDIR}/../common

MAIN=	${COMMON}/main ${COMMON}/macros ${EXTRA}
TARG=	INSTALL
TARGS=	${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
TOCS=	${TARG}.PostScript.toc ${TARG}.ASCII.toc ${TARG}.HTML.toc \
	${TARG}.more.toc
SRCS=	${MAIN} whatis ${COMMON}/contents hardware xfer prep \
	${.CURDIR}/install ${COMMON}/postinstall upgrade \
	${COMMON}/legal.common legal \
	${.CURDIR}/../Makefile.inc ${MERGED_SRCS}

whatis: .OPTIONAL

PRESET=	${GFLAGS} -U -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1

POST_PLAIN= -P-b -P-u -P-o

ARGS_PS=	${PRESET} -dformat=PostScript
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -mtty-char
ARGS_HTML=	${PRESET} -dformat=HTML ${POST_PLAIN} -Tlatin1 -ww
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii -mtty-char

#
# For example...
#
#	.if ri386 ...stuff...
#	.Ss "Install notes for NetBSD/\*[MACHINE]"
#

all: ${TARGS}

.if ${MKTOCS} != "no"
TOC.ps=		${TOCS:M*.PostScript.*}
TOC.txt=	${TOCS:M*.ASCII.*}
TOC.html=	${TOCS:M*.HTML.*}
TOC.more=	${TOCS:M*.more.*}
.endif


${TARG}.ps: ${SRCS} ${TOC.ps} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} > $@@

${TARG}.pdf: ${TARG}.ps
	ps2pdf ${TARG}.ps $@@

${TARG}.txt: ${SRCS} ${TOC.txt} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_TXT}  -mdoc      ${MAIN} > $@@

${TARG}.html: ${SRCS} ${TOC.html} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_HTML} -mdoc2html ${MAIN} > $@@

${TARG}.more: ${SRCS} ${TOC.more} ${DISTRIBVERDEP}
	${TOOL_GROFF} ${ARGS_MORE} -mdoc      ${MAIN} > $@@


# Rules to build the table of contents (.toc) files.
# They are generated twice to take into account the
# space taken by the TOC itself.
#

TOCPROC=	   2>&1 >/dev/null |\
           sed -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'

${TARG}.PostScript.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.ASCII.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.HTML.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.more.toc: ${SRCS}
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	${TOOL_GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@


release: check_RELEASEDIR .WAIT ${TARGS}
	${INSTALL} -d -m 755 ${RELEASEDIR}/${RELEASEMACHINEDIR}
	${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/${RELEASEMACHINEDIR}

cleannotes:
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS} \
	    ${TOCS:S/.toc$/.toc.tmp/g}

clean cleandir distclean: cleannotes
@


1.38.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d23 1
a23 2
	${COMMON}/legal.common legal ${COMMON}/netboot \
	${COMMON}/sysinst \
@


1.37
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36 2006/04/22 02:57:29 uwe Exp $
d26 3
a28 1
PRESET=	${GFLAGS} -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1
@


1.36
log
@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?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35 2004/02/02 18:43:39 he Exp $
d23 1
a23 1
	${COMMON}/donations ${COMMON}/legal.common legal \
@


1.36.6.1
log
@Sync w/ NetBSD-4-RC_1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36.4.1 2007/08/31 20:48:54 pavel Exp $
d23 1
a23 1
	${COMMON}/legal.common legal \
d26 1
a26 3
whatis: .OPTIONAL

PRESET=	${GFLAGS} -U -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1
@


1.36.6.2
log
@Catch up to netbsd-4.0 release.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36.6.1 2007/09/03 06:57:22 wrstuden Exp $
d23 1
a23 2
	${COMMON}/legal.common legal ${COMMON}/netboot \
	${COMMON}/sysinst \
@


1.36.4.1
log
@sync the release notes with -current. The -current ones do not contain
anything specific to post-4.0.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.38 2007/07/26 15:26:35 pavel Exp $
d23 1
a23 1
	${COMMON}/legal.common legal \
d26 1
a26 3
whatis: .OPTIONAL

PRESET=	${GFLAGS} -U -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1
@


1.36.4.2
log
@Sync the release notes with HEAD.
@
text
@@


1.36.4.3
log
@Pull up following revisions (requested by jnemeth in ticket #1017):
	distrib/notes/common/contents			patch
	distrib/notes/common/list-setsizes.sh		patch
	distrib/notes/pmppc/hardware			patch
	distrib/notes/Makefile.inc			1.39, 1.40
	distrib/notes/acorn32/prep.RISCOS		1.18
	distrib/notes/alpha/install			1.32
	distrib/notes/common/main			1.367, 1.368, 1.370 - 1.382
	distrib/notes/common/netboot			1.31
	distrib/notes/common/postinstall		1.64, 1.65
	distrib/notes/common/sysinst			1.82, 1.83
	distrib/notes/common/xfer			1.58 - 1.60
	distrib/notes/evbppc/hardware			1.3
	distrib/notes/ews4800mips/hardware		1.2
	distrib/notes/hp300/hardware			1.19
	distrib/notes/hp300/prep			1.21
	distrib/notes/hp700/hardware			1.3
	distrib/notes/i386/hardware			1.121
	distrib/notes/i386/whatis			1.22
	distrib/notes/mac68k/hardware			1.23
	distrib/notes/mac68k/install			1.28
	distrib/notes/macppc/hardware			1.44
	distrib/notes/macppc/install			1.36
	distrib/notes/macppc/prep			1.42
	distrib/notes/macppc/prep.OPENFIRMWARE 		1.9
	distrib/notes/news68k/hardware			1.5
	distrib/notes/newsmips/hardware			1.4
	distrib/notes/next68k/hardware			1.8
	distrib/notes/pmax/install			1.39
	distrib/notes/sandpoint/hardware		1.6
	distrib/notes/sparc/hardware			1.33
	distrib/notes/sparc64/hardware			1.23
	distrib/notes/sparc64/install			1.28
	distrib/notes/vax/xfer				1.13
Sync release notes with reality
@
text
@d1 1
a1 1
#	$NetBSD$
d23 1
a23 2
	${COMMON}/legal.common legal ${COMMON}/netboot \
	${COMMON}/sysinst \
@


1.35
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.34 2003/07/26 17:06:52 salo Exp $
d102 2
a103 1
	${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/${MACHINE}
@


1.34
log
@netbsd.org->NetBSD.org
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.33 2003/07/10 10:34:11 lukem Exp $
d52 1
a52 1
${TARG}.ps: ${SRCS} ${TOC.ps}
d58 1
a58 1
${TARG}.txt: ${SRCS} ${TOC.txt}
d61 1
a61 1
${TARG}.html: ${SRCS} ${TOC.html}
d64 1
a64 1
${TARG}.more: ${SRCS} ${TOC.more}
@


1.33
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2003/01/03 15:34:34 lukem Exp $
d4 1
a4 1
# Ross Harvey <ross@@netbsd.org>
@


1.32
log
@Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 2002/07/21 08:14:46 lukem Exp $
d53 1
a53 1
	${GROFF} ${ARGS_PS}   -mdoc      ${MAIN} > $@@
d59 1
a59 1
	${GROFF} ${ARGS_TXT}  -mdoc      ${MAIN} > $@@
d62 1
a62 1
	${GROFF} ${ARGS_HTML} -mdoc2html ${MAIN} > $@@
d65 1
a65 1
	${GROFF} ${ARGS_MORE} -mdoc      ${MAIN} > $@@
d77 1
a77 1
	${GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d79 1
a79 1
	${GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d83 1
a83 1
	${GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d85 1
a85 1
	${GROFF} -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d89 1
a89 1
	${GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d91 1
a91 1
	${GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d95 1
a95 1
	${GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d97 1
a97 1
	${GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
@


1.31
log
@- define COMMON as "${.CURDIR}/../common", and use appropriately
- remove .PATH: ${.CURDIR}/../common
- update the various MERGED_SRCS lines to reflect reality
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.30 2002/07/21 00:12:28 lukem Exp $
d102 1
a102 1
	${RELEASE_INSTALL} ${TARGS} ${RELEASEDIR}/.
@


1.30
log
@add back comment lost in previous revision
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.29 2002/07/20 06:59:19 lukem Exp $
d14 1
d16 1
a16 1
MAIN=	${.CURDIR}/../common/main ${.CURDIR}/../common/macros ${EXTRA}
d21 3
a23 2
SRCS=	${MAIN} whatis contents hardware xfer prep ${.CURDIR}/install \
	upgrade donations legal.common legal postinstall \
a102 2

.PATH: ${.CURDIR}/../common
@


1.29
log
@- 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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 2002/06/16 00:30:23 wiz Exp $
d10 1
d49 1
d65 6
d97 1
@


1.28
log
@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...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 2002/06/15 02:15:54 lukem Exp $
d19 3
a21 3
SRCS=	${MAIN} whatis contents hardware xfer prep install\
	upgrade donations legal.common legal postinstall ../Makefile.inc\
	${MERGED_SRCS}
d42 4
a45 3
  TOCDEPS = ${TOCS}
.else
  TOCDEPS =
d48 1
a48 1
${TARG}.ps: ${SRCS} ${TOCDEPS}
d54 1
a54 1
${TARG}.txt: ${SRCS} ${TOCDEPS}
d57 1
a57 1
${TARG}.html: ${SRCS} ${TOCDEPS}
d60 1
a60 1
${TARG}.more: ${SRCS} ${TOCDEPS}
a83 2
# needs to be created twice to take into account the space taken
# by the TOC itself
d96 2
a97 1
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS}
@


1.27
log
@remove now-unused targets
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26 2002/05/02 18:02:47 lukem Exp $
d83 2
@


1.26
log
@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}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25 2002/04/26 15:50:42 lukem Exp $
a87 6

echosrcs! ${SRCS}
	@@echo ${.ALLSRC}

echomore!
	@@echo ${.OBJDIR}/${TARG}.more
@


1.26.2.1
log
@Pull up revision 1.27 (requested by lukem in ticket #280):
remove now-unused targets
@
text
@d1 1
a1 1
#	$NetBSD$
d88 6
@


1.26.2.2
log
@Pull up revision 1.28 (requested by wiz in ticket #289):
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...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26.2.1 2002/06/15 02:20:09 lukem Exp $
a82 2
# needs to be created twice to take into account the space taken
# by the TOC itself
@


1.26.2.3
log
@Pull up revision 1.29 (requested by lukem):
- 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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26.2.2 2002/06/18 13:57:53 lukem Exp $
d19 3
a21 3
SRCS=	${MAIN} whatis contents hardware xfer prep ${.CURDIR}/install \
	upgrade donations legal.common legal postinstall \
	${.CURDIR}/../Makefile.inc ${MERGED_SRCS}
d42 3
a44 4
TOC.ps=		${TOCS:M*.PostScript.*}
TOC.txt=	${TOCS:M*.ASCII.*}
TOC.html=	${TOCS:M*.HTML.*}
TOC.more=	${TOCS:M*.more.*}
d47 1
a47 1
${TARG}.ps: ${SRCS} ${TOC.ps}
d53 1
a53 1
${TARG}.txt: ${SRCS} ${TOC.txt}
d56 1
a56 1
${TARG}.html: ${SRCS} ${TOC.html}
d59 1
a59 1
${TARG}.more: ${SRCS} ${TOC.more}
d83 2
d97 1
a97 2
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS} \
	    ${TOCS:S/.toc$/.toc.tmp/g}
@


1.26.2.4
log
@Pull up revision 1.30 (requested by lukem):
add back comment lost in previous revision
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26.2.3 2002/07/20 07:02:46 lukem Exp $
a9 1
#
a47 1

a62 6

# Rules to build the table of contents (.toc) files.
# They are generated twice to take into account the
# space taken by the TOC itself.
#

a88 1

@


1.26.2.5
log
@Pull up revision 1.31 (requested by lukem):
- define COMMON as "${.CURDIR}/../common", and use appropriately
- remove .PATH: ${.CURDIR}/../common
- update the various MERGED_SRCS lines to reflect reality
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26.2.4 2002/07/21 00:50:10 lukem Exp $
a13 1
COMMON=	${.CURDIR}/../common
d15 1
a15 1
MAIN=	${COMMON}/main ${COMMON}/macros ${EXTRA}
d20 2
a21 3
SRCS=	${MAIN} whatis ${COMMON}/contents hardware xfer prep \
	${.CURDIR}/install ${COMMON}/postinstall upgrade \
	${COMMON}/donations ${COMMON}/legal.common legal \
d101 2
@


1.25
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.24 2002/04/11 06:33:57 lukem Exp $
d7 1
a7 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d95 2
a96 2
release: check_RELEASEDIR
	${RELINSTALL} ${TARGS} ${RELEASEDIR}/.
@


1.24
log
@simplify by using stuff from ../Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.23 2002/02/09 13:56:52 lukem Exp $
d7 1
a7 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.23
log
@don't set the owner or group when installing into $RELEASEDIR
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.22 2001/12/10 05:27:59 jmc Exp $
d7 1
a12 2
V!=	/bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh
V_S!=	/bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh -s
a21 1
ICMD=	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
d23 1
a23 1
PRESET=	${GFLAGS} -dM=${M} -dV=${V} -d.CURDIR=${.CURDIR} -r${M}=1
d95 2
a96 8
.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release:
	${ICMD} ${TARGS} ${RELEASEDIR}/.
.endif
@


1.22
log
@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).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.21 2001/12/01 17:54:11 jhawk Exp $
d23 1
a23 2
ICMD=	${INSTALL} ${RENAME} ${PRESERVE} ${COPY}	\
	-o root -g wheel -m ${NONBINMODE} 
@


1.21
log
@s/MAKETOCS/MKTOCS/
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2001/11/30 22:20:03 jhawk Exp $
a25 3
.if defined(DESTDIR)
PRESET=	${GFLAGS} -dM=${M} -dV=${V} -d.CURDIR=${.CURDIR} -r${M}=1 -M${DESTDIR}/usr/share/tmac
.else
a26 1
.endif
d51 1
a51 1
	groff ${ARGS_PS}   -mdoc      ${MAIN} > $@@
d57 1
a57 1
	groff ${ARGS_TXT}  -mdoc      ${MAIN} > $@@
d60 1
a60 1
	groff ${ARGS_HTML} -mdoc2html ${MAIN} > $@@
d63 1
a63 1
	groff ${ARGS_MORE} -mdoc      ${MAIN} > $@@
d69 1
a69 1
	groff -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d71 1
a71 1
	groff -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d75 1
a75 1
	groff -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d77 1
a77 1
	groff -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d81 1
a81 1
	groff -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d83 1
a83 1
	groff -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d87 1
a87 1
	groff -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
d89 1
a89 1
	groff -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
@


1.20
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2001/11/26 00:19:56 jhawk Exp $
d9 1
a9 1
MAKETOCS?=yes
d48 1
a48 1
.if ${MAKETOCS} != "no"
@


1.19
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2001/01/14 21:45:01 mycroft Exp $
d8 3
d48 7
a54 1
${TARG}.ps: ${SRCS}
d60 1
a60 1
${TARG}.txt: ${SRCS}
d63 1
a63 1
${TARG}.html: ${SRCS}
d66 1
a66 1
${TARG}.more: ${SRCS}
a68 2
tocs: ${TOCS}

d72 3
a74 1
${TARG}.PostScript.toc: .PHONY
d78 3
a80 1
${TARG}.ASCII.toc: .PHONY
d84 3
a86 1
${TARG}.HTML.toc: .PHONY
d90 3
a92 1
${TARG}.more.toc: .PHONY
@


1.18
log
@Nuke gratuitous usage of .for.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2001/01/14 21:37:55 mycroft Exp $
d15 2
d60 21
d99 1
a99 1
	rm -f [Ee]rrs mklog core *.core ${TARGS}
@


1.17
log
@Use bsd.man.mk (maybe should be something else) instead of bsd.prog.mk, and
do the cleaning differently.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2001/01/14 21:30:58 mycroft Exp $
d41 1
a41 3
.for i in ps txt html more
all: ${TARG}.$i
.endfor
d70 1
a70 3
.for i in ${TARGS}
	${ICMD} ${i} ${RELEASEDIR}/.
.endfor
a73 4

# make the "afterdepend" rule happy
.depend:
	@@touch $@@
@


1.16
log
@Use bsd.own.mk, not bsd.obj.mk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2000/11/26 02:50:12 matt Exp $
a40 2
CLEANFILES+=${TARGS}

d82 5
@


1.15
log
@When making the release notes, use the macros in ${DESTDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2000/10/10 12:51:20 lukem Exp $
d6 1
a6 1
.include <bsd.obj.mk>	# So we get /etc/mk.conf vars.
@


1.14
log
@- 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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2000/10/05 09:02:48 lukem Exp $
d21 3
d25 1
@


1.13
log
@add dinky .pdf target which runs ps2pdf on the .ps source
@
text
@d1 2
a2 1
#	$NetBSD: Makefile.inc,v 1.12 2000/08/01 01:57:57 enami Exp $
d12 1
a12 1
MAIN=	${.CURDIR}/../common/main ${EXTRA}
d21 1
a21 1
PRESET=	${GFLAGS} -dV=$V -dV_S=${V_S} -dMACHINE=$M -d.CURDIR=${.CURDIR} -r$M=1 
@


1.12
log
@When output device is ascii, load tmac.tty-char explicity as nroff does,
so that some developer's names are translated saner way.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2000/03/08 15:39:48 cjs Exp $
d44 3
@


1.11
log
@Include bsd.obj.mk so we can have RELEASEDIR in /etc/mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 1999/12/08 03:57:29 lukem Exp $
d25 1
a25 1
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii
d27 1
a27 1
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii
@


1.11.4.1
log
@Pullup rev. 1.12 (approved by jhawk and thorpej):
date: 2000/08/01 01:57:57;  author: enami;  state: Exp;  lines: +3 -3
When output device is ascii, load tmac.tty-char explicity as nroff does,
so that some developer's names are translated saner way.
@
text
@d1 1
a1 1
#	$NetBSD$
d25 1
a25 1
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -mtty-char
d27 1
a27 1
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii -mtty-char
@


1.11.4.2
log
@Sync to HEAD as of 20001101 03:43 GMT [lukem]:
Complete rework of install notes for 1.5 from several authors.
@
text
@d1 1
a1 2
#	$NetBSD: Makefile.inc,v 1.14 2000/10/10 12:51:20 lukem Exp $
#
d11 1
a11 1
MAIN=	${.CURDIR}/../common/main ${.CURDIR}/../common/macros ${EXTRA}
d20 1
a20 1
PRESET=	${GFLAGS} -dM=${M} -dV=${V} -d.CURDIR=${.CURDIR} -r${M}=1
a43 3

${TARG}.pdf: ${TARG}.ps
	ps2pdf ${TARG}.ps $@@
@


1.11.4.3
log
@Pull up revisions 1.15-1.21 (requested by he):
  Add Table of Contents to the install notes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11.4.2 2000/11/01 03:44:33 tv Exp $
d6 1
a6 4
.include <bsd.own.mk>	# So we get /etc/mk.conf vars.

# Whether or not to regenerate tables of contents
MKTOCS?=yes
a14 2
TOCS=	${TARG}.PostScript.toc ${TARG}.ASCII.toc ${TARG}.HTML.toc \
	${TARG}.more.toc
a20 3
.if defined(DESTDIR)
PRESET=	${GFLAGS} -dM=${M} -dV=${V} -d.CURDIR=${.CURDIR} -r${M}=1 -M${DESTDIR}/usr/share/tmac
.else
a21 1
.endif
d37 1
a37 1
all: ${TARGS}
d39 3
a41 5
.if ${MKTOCS} != "no"
  TOCDEPS = ${TOCS}
.else
  TOCDEPS =
.endif
d43 1
a43 1
${TARG}.ps: ${SRCS} ${TOCDEPS}
d49 1
a49 1
${TARG}.txt: ${SRCS} ${TOCDEPS}
d52 1
a52 1
${TARG}.html: ${SRCS} ${TOCDEPS}
d55 1
a55 1
${TARG}.more: ${SRCS} ${TOCDEPS}
a57 27
TOCPROC=	   2>&1 >/dev/null |\
           sed -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'

${TARG}.PostScript.toc: ${SRCS}
	groff -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	groff -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.ASCII.toc: ${SRCS}
	groff -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	groff -dTOC=1 ${ARGS_TXT} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.HTML.toc: ${SRCS}
	groff -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	groff -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

${TARG}.more.toc: ${SRCS}
	groff -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@
	groff -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@@.tmp
	mv -f $@@.tmp $@@

d70 3
a72 1
	${ICMD} ${TARGS} ${RELEASEDIR}/.
d77 3
a79 4
cleannotes:
	rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS}

clean cleandir distclean: cleannotes
@


1.10
log
@- 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)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 1999/12/07 22:56:57 soren Exp $
d4 2
@


1.9
log
@Fix pasto.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 1999/12/07 22:33:49 soren Exp $
d12 1
a12 1
SRCS=	${MAIN} mirrors whatis contents hardware xfer prep install\
@


1.8
log
@Use 7-bit ASCII for INSTALL.txt.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1999/12/07 17:58:04 soren Exp $
d23 1
a23 1
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -Tascii
d25 1
a25 1
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tlatin1
@


1.7
log
@Use -Tlatin1 for output.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1999/06/30 18:23:02 ross Exp $
d20 1
a20 1
POST_PLAIN= -P-b -P-u -P-o -Tlatin1
d23 2
a24 2
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN}
ARGS_HTML=	${PRESET} -dformat=HTML  ${POST_PLAIN} -ww
@


1.6
log
@Add release targets, intended for use by the src/etc/Makefile `make release'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1999/04/29 19:03:03 ross Exp $
d20 1
a20 1
POST_PLAIN= -P-b -P-u -P-o -Tascii
d25 1
a25 1
ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii
@


1.6.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 1999/12/08 03:57:29 lukem Exp $
d12 1
a12 1
SRCS=	${MAIN} whatis contents hardware xfer prep install\
d20 1
a20 1
POST_PLAIN= -P-b -P-u -P-o
d23 2
a24 2
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii
ARGS_HTML=	${PRESET} -dformat=HTML ${POST_PLAIN} -Tlatin1 -ww
@


1.5
log
@Add target used when importing INSTALL.more to sysinst images.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1999/03/06 11:31:51 drochner Exp $
d15 2
d57 11
@


1.4
log
@workaround to make "make depend" succeed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 1999/02/13 23:53:56 lukem Exp $
d52 3
@


1.4.2.1
log
@pullup 1.4->1.5 (ross)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1999/04/29 19:03:03 ross Exp $
a51 3

echomore!
	@@echo ${.OBJDIR}/${TARG}.more
@


1.4.2.2
log
@Apply patch (requested by soren):
  Remove the list of mirrors, point instead to the on-line list.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4.2.1 1999/04/29 20:14:55 perry Exp $
d12 1
a12 1
SRCS=	${MAIN} whatis contents hardware xfer prep install\
@


1.4.2.3
log
@Apply patch (requested by toddpw, modified by he):
  Format HTML with latin1 characters.  Add a "release" target to
  install the formatted release notes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4.2.2 2000/02/10 21:39:30 he Exp $
a14 2
ICMD=	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
	-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE}
d18 1
a18 1
POST_PLAIN= -P-b -P-u -P-o
d21 2
a22 2
ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii
ARGS_HTML=	${PRESET} -dformat=HTML  ${POST_PLAIN} -Tlatin1 -ww
a54 11

.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release:
.for i in ${TARGS}
	${ICMD} ${i} ${RELEASEDIR}/.
.endfor
.endif
@


1.4.2.4
log
@Apply patch (requested by he):
  Make sure install notes are built before installing them under
  ``make release''.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4.2.3 2000/03/29 22:38:45 he Exp $
d63 1
a63 1
release: all
@


1.3
log
@remove NOPROG (nothing uses it). however, set MKOBJ=no if appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 1999/02/07 18:29:51 kleink Exp $
d54 4
@


1.2
log
@Also clean up ${TARG}.more.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1999/01/13 08:18:44 ross Exp $
a3 2

NOPROG=	notreally
@


1.1
log
@Give the common install notes components their own subdirectory.
Also, alpha and i386 now use a single merged common/sysinst,
and arm32 and sparc have a single merged common/xfer.
@
text
@d1 1
a1 1
#	$NetBSD$
d13 1
a13 1
TARGS=	${TARG}.ps ${TARG}.txt ${TARG}.html
@

