blob: a06115dbe7e1da8eea42a4b3e38f48661f1c2d3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# $NetBSD: Makefile.versions,v 1.33 2018/09/12 20:01:12 schmonz Exp $
DIST_VERSION_MAJOR= 21
DIST_VERSION_MINOR= 0
# Only set when sources for patch level releases are published on erlang.org
DIST_VERSION_PATCH= 9
.include "versions.mk"
PLIST_SUBST+= VERSION=${DIST_VERSION_MAJOR}
.for name version in ${_VERSIONS}
VERSION.${name}=${version}
PLIST_SUBST+= VERSION.${name}=${version}
.endfor
# Generate PLIST
.for pkg version in ${_VERSIONS}
PRINT_PLIST_AWK+= {if ($$0 ~ /\/${pkg}-${version}\//) {sub(/\/${pkg}-${version}\//,"/${pkg}-$${VERSION.${pkg}}/", $$0);}}
# documentation:
PRINT_PLIST_AWK+= {gsub(/\/${pkg}-${version}\.pdf/,"/${pkg}-$${VERSION.${pkg}}.pdf", $$0);}
.endfor
PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}}
# documentation:
PRINT_PLIST_AWK+= {gsub(/\/otp-system-documentation-${VERSION.erts}\.pdf/,"/otp-system-documentation-$${VERSION.erts}.pdf", $$0);}
|