diff options
author | asau <asau@pkgsrc.org> | 2009-12-15 13:53:24 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2009-12-15 13:53:24 +0000 |
commit | a8e9b6d9f311fb366e016a0b321ec82fb0fd1e54 (patch) | |
tree | 9828f6d053d0101f2648df350952d850f2b0a8d3 /lang/erlang/Makefile.versions | |
parent | 8fadeac7eec204b9cf125d41b629c834a9a9f8c1 (diff) | |
download | pkgsrc-a8e9b6d9f311fb366e016a0b321ec82fb0fd1e54.tar.gz |
Deduplicate, move common code into more appropriate place.
Diffstat (limited to 'lang/erlang/Makefile.versions')
-rw-r--r-- | lang/erlang/Makefile.versions | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/erlang/Makefile.versions b/lang/erlang/Makefile.versions index a0c43dc734c..d0b3f74f802 100644 --- a/lang/erlang/Makefile.versions +++ b/lang/erlang/Makefile.versions @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.versions,v 1.8 2009/12/15 13:33:47 asau Exp $ +# $NetBSD: Makefile.versions,v 1.9 2009/12/15 13:53:24 asau Exp $ ERLANG_VERSION= 13.2.3 DIST_VERSION_MAJOR= R13B03 @@ -67,3 +67,9 @@ PLIST_SUBST+= VERSION=${DIST_VERSION_MAJOR} 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);}} +.endfor +PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}} |