head 1.4;
access;
symbols
pkgsrc-2021Q3:1.4.0.10
pkgsrc-2021Q3-base:1.4
pkgsrc-2021Q2:1.4.0.8
pkgsrc-2021Q2-base:1.4
pkgsrc-2021Q1:1.4.0.6
pkgsrc-2021Q1-base:1.4
pkgsrc-2020Q4:1.4.0.4
pkgsrc-2020Q4-base:1.4
pkgsrc-2020Q3:1.4.0.2
pkgsrc-2020Q3-base:1.4
pkgsrc-2020Q2:1.3.0.16
pkgsrc-2020Q2-base:1.3
pkgsrc-2020Q1:1.3.0.12
pkgsrc-2020Q1-base:1.3
pkgsrc-2019Q4:1.3.0.14
pkgsrc-2019Q4-base:1.3
pkgsrc-2019Q3:1.3.0.10
pkgsrc-2019Q3-base:1.3
pkgsrc-2019Q2:1.3.0.8
pkgsrc-2019Q2-base:1.3
pkgsrc-2019Q1:1.3.0.6
pkgsrc-2019Q1-base:1.3
pkgsrc-2018Q4:1.3.0.4
pkgsrc-2018Q4-base:1.3
pkgsrc-2018Q3:1.3.0.2
pkgsrc-2018Q3-base:1.3
pkgsrc-2018Q2:1.2.0.92
pkgsrc-2018Q2-base:1.2
pkgsrc-2018Q1:1.2.0.90
pkgsrc-2018Q1-base:1.2
pkgsrc-2017Q4:1.2.0.88
pkgsrc-2017Q4-base:1.2
pkgsrc-2017Q3:1.2.0.86
pkgsrc-2017Q3-base:1.2
pkgsrc-2017Q2:1.2.0.82
pkgsrc-2017Q2-base:1.2
pkgsrc-2017Q1:1.2.0.80
pkgsrc-2017Q1-base:1.2
pkgsrc-2016Q4:1.2.0.78
pkgsrc-2016Q4-base:1.2
pkgsrc-2016Q3:1.2.0.76
pkgsrc-2016Q3-base:1.2
pkgsrc-2016Q2:1.2.0.74
pkgsrc-2016Q2-base:1.2
pkgsrc-2016Q1:1.2.0.72
pkgsrc-2016Q1-base:1.2
pkgsrc-2015Q4:1.2.0.70
pkgsrc-2015Q4-base:1.2
pkgsrc-2015Q3:1.2.0.68
pkgsrc-2015Q3-base:1.2
pkgsrc-2015Q2:1.2.0.66
pkgsrc-2015Q2-base:1.2
pkgsrc-2015Q1:1.2.0.64
pkgsrc-2015Q1-base:1.2
pkgsrc-2014Q4:1.2.0.62
pkgsrc-2014Q4-base:1.2
pkgsrc-2014Q3:1.2.0.60
pkgsrc-2014Q3-base:1.2
pkgsrc-2014Q2:1.2.0.58
pkgsrc-2014Q2-base:1.2
pkgsrc-2014Q1:1.2.0.56
pkgsrc-2014Q1-base:1.2
pkgsrc-2013Q4:1.2.0.54
pkgsrc-2013Q4-base:1.2
pkgsrc-2013Q3:1.2.0.52
pkgsrc-2013Q3-base:1.2
pkgsrc-2013Q2:1.2.0.50
pkgsrc-2013Q2-base:1.2
pkgsrc-2013Q1:1.2.0.48
pkgsrc-2013Q1-base:1.2
pkgsrc-2012Q4:1.2.0.46
pkgsrc-2012Q4-base:1.2
pkgsrc-2012Q3:1.2.0.44
pkgsrc-2012Q3-base:1.2
pkgsrc-2012Q2:1.2.0.42
pkgsrc-2012Q2-base:1.2
pkgsrc-2012Q1:1.2.0.40
pkgsrc-2012Q1-base:1.2
pkgsrc-2011Q4:1.2.0.38
pkgsrc-2011Q4-base:1.2
pkgsrc-2011Q3:1.2.0.36
pkgsrc-2011Q3-base:1.2
pkgsrc-2011Q2:1.2.0.34
pkgsrc-2011Q2-base:1.2
pkgsrc-2011Q1:1.2.0.32
pkgsrc-2011Q1-base:1.2
pkgsrc-2010Q4:1.2.0.30
pkgsrc-2010Q4-base:1.2
pkgsrc-2010Q3:1.2.0.28
pkgsrc-2010Q3-base:1.2
pkgsrc-2010Q2:1.2.0.26
pkgsrc-2010Q2-base:1.2
pkgsrc-2010Q1:1.2.0.24
pkgsrc-2010Q1-base:1.2
pkgsrc-2009Q4:1.2.0.22
pkgsrc-2009Q4-base:1.2
pkgsrc-2009Q3:1.2.0.20
pkgsrc-2009Q3-base:1.2
pkgsrc-2009Q2:1.2.0.18
pkgsrc-2009Q2-base:1.2
pkgsrc-2009Q1:1.2.0.16
pkgsrc-2009Q1-base:1.2
pkgsrc-2008Q4:1.2.0.14
pkgsrc-2008Q4-base:1.2
pkgsrc-2008Q3:1.2.0.12
pkgsrc-2008Q3-base:1.2
cube-native-xorg:1.2.0.10
cube-native-xorg-base:1.2
pkgsrc-2008Q2:1.2.0.8
pkgsrc-2008Q2-base:1.2
cwrapper:1.2.0.6
pkgsrc-2008Q1:1.2.0.4
pkgsrc-2008Q1-base:1.2
pkgsrc-2007Q4:1.2.0.2
pkgsrc-2007Q4-base:1.2
pkgsrc-2007Q3:1.1.0.16
pkgsrc-2007Q3-base:1.1
pkgsrc-2007Q2:1.1.0.14
pkgsrc-2007Q2-base:1.1
pkgsrc-2007Q1:1.1.0.12
pkgsrc-2007Q1-base:1.1
jlam-pkgviews:1.1.0.10
jlam-pkgviews-base:1.1
pkgsrc-2006Q4:1.1.0.8
pkgsrc-2006Q4-base:1.1
pkgsrc-2006Q3:1.1.0.6
pkgsrc-2006Q3-base:1.1
pkgsrc-2006Q2:1.1.0.4
pkgsrc-2006Q2-base:1.1
pkgsrc-2006Q1:1.1.0.2
pkgsrc-2006Q1-base:1.1;
locks; strict;
comment @# @;
1.4
date 2020.09.12.06.55.08; author rillig; state Exp;
branches;
next 1.3;
commitid NpkK9f26R4EG5JnC;
1.3
date 2018.08.22.20.48.37; author maya; state Exp;
branches;
next 1.2;
commitid FMEpDDTKwDQBR9PA;
1.2
date 2007.10.31.21.09.03; author rillig; state Exp;
branches;
next 1.1;
1.1
date 2006.01.12.23.43.57; author jlam; state Exp;
branches;
next ;
desc
@@
1.4
log
@mk/plist: fail fast on programming mistake
@
text
@# $NetBSD: plist-functions.awk,v 1.3 2018/08/22 20:48:37 maya Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Johnny C. Lam.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
###
### join(array, start, end, separator) concatenates an array of strings
### with a separator and returns the concatenated string. It is the
### inverse of the built-in split() function.
###
function join(array, start, end, separator, result, i) {
result = array[start]
for (i = start + 1; i <= end; i++)
result = result separator array[i]
return result
}
###
### print_entry(entry) prints the entry to standard output. If avoids
### printing out duplicate entries by caching ones that have previously
### been printed.
###
function print_entry(entry) {
if (entries[entry] == "") {
entries[entry] = entry
print entry
}
}
function getenv_or_die(varname) {
if (varname in ENVIRON)
return ENVIRON[varname]
print "ERROR: "varname" must be defined." | "cat 1>&2"
exit(1)
}
@
1.3
log
@Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.
This change has been applied to code which is likely not in other
repositories.
ok board@@, reviewed by riastradh@@
@
text
@d1 1
a1 1
# $NetBSD: plist-functions.awk,v 1.2 2007/10/31 21:09:03 rillig Exp $
d58 1
@
1.2
log
@Some implementations of X11 install both manpages and catpages, which
has not been supported by pkgsrc up to now.
This changes adds a PLIST macro @@imake-man that expands to zero, one or
two lines, depending on the value of IMAKE_MANINSTALL. Packages must
explicitly have the macro in the PLIST files to use this feature. Since
currently no package has that, this change doesn't affect anything at
all by now.
TODO: The platforms' definitions for IMAKE_MANINSTALL and the other
definitions like IMAKE_MAN_SUFFIX need to be adjusted.
@
text
@d1 1
a1 1
# $NetBSD: plist-functions.awk,v 1.1 2006/01/12 23:43:57 jlam Exp $
a16 7
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the NetBSD
# Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
@
1.1
log
@Initial commit of a new module that encapsulates all of the code
for manipulating PLISTs. This module is not used by default pending
more widespread testing -- currently the variable _USE_PLIST_MODULE
must be defined in /etc/mk.conf to enable its use.
The main features of the new PLIST module are:
(1) Splits out the PLIST-handling code from bsd.pkg.mk into a
separate "plist" module.
(2) Splits out giant, multi-line awk scripts stored in make
variables into separate awk scripts that may be joined
together to post-process PLISTs. Each of these awk scripts
consolidates the processing for one set of files, e.g.,
man pages, info pages, etc., and is more easily commented
than a make variable.
(3) Splits out the print-PLIST code from the regular PLIST code
since they have no common pieces (print-plist.mk vs.
plist.mk).
(4) Completely re-implements the shared-library handling to be
more efficient. Along the way, this also fixes a problem
for Mac OS X users where the PLISTs incorrectly contained
absolute paths.
(5) Completely re-implements the info-file handling so that we
can migrate from INFO_FILES definitions to just adding
info/foo.info entries in the static PLISTs.
(6) Adds commented-out support for automatically compressed or
decompressed info page entries based on the value of MANZ.
These changes will be activated after texinfo.mk has been
replaced by something that is built using the more modern
primitives now available in pkgsrc.
(7) Move the file compression logic into a separate script
"doc-compress" that compresses or decompresses files while
minding symlinks. This script is now called by bsd.pkg.mk
to do the "autmoatic man page handling". In the future,
it will also handle the "automatic info page handling" and
possible others.
In general, the idea is to move stuff out of the Makefiles and into
separate files where we don't need to worry about quoting rules
and where each file can have a separate history of commits. This
simplifies the makefile logic (especially in terms of readability)
and also simplifies maintenance of the code.
@
text
@d1 1
a1 1
# $NetBSD$
d60 6
@