pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/erlang lang/erlang: write _VERSIONS variable in a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f72bf3740b7f
branches:  trunk
changeset: 343408:f72bf3740b7f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 03 18:11:51 2019 +0000

description:
lang/erlang: write _VERSIONS variable in a single line

In the previous version, pkglint would want to indent the continuation
line with a tab. To prevent this, the variable assignment is now printed
in its canonical format.

Just like humans, pkglint does not read the "do not edit" notice at the
top of the file. Maybe it should.

diffstat:

 lang/erlang/Makefile    |  5 ++---
 lang/erlang/versions.mk |  5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r bfe6c3d83012 -r f72bf3740b7f lang/erlang/Makefile
--- a/lang/erlang/Makefile      Sun Nov 03 17:14:24 2019 +0000
+++ b/lang/erlang/Makefile      Sun Nov 03 18:11:51 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2019/08/11 13:21:19 wiz Exp $
+# $NetBSD: Makefile,v 1.96 2019/11/03 18:11:51 rillig Exp $
 
 DISTNAME=              OTP-${DIST_VERSION_MAJOR}.${DIST_VERSION_MINOR}${!empty(DIST_VERSION_PATCH):?.:}${DIST_VERSION_PATCH}
 PKGNAME=               ${DISTNAME:S/OTP-/erlang-/}
@@ -101,9 +101,8 @@
 versions: do-extract
        @${ECHO} "# \$$NetBSD\$$" > ${.CURDIR}/versions.mk
        @${ECHO} "# Do not edit, regenerate using 'make versions'" >> ${.CURDIR}/versions.mk
-       @${ECHO} "_VERSIONS= \\" >> ${.CURDIR}/versions.mk
        ${AWK} -F: '/OTP-${PKGVERSION_NOREV} :/{print $$2}' ${WRKSRC}/otp_versions.table |\
-               ${SED} -e 's/# //g' -e 's/-/ /g' >> ${.CURDIR}/versions.mk
+               ${SED} -e 's/# //g' -e 's/-/ /g' -e 's,^ ,_VERSIONS=    ,' >> ${.CURDIR}/versions.mk
 
 post-install:
        chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib
diff -r bfe6c3d83012 -r f72bf3740b7f lang/erlang/versions.mk
--- a/lang/erlang/versions.mk   Sun Nov 03 17:14:24 2019 +0000
+++ b/lang/erlang/versions.mk   Sun Nov 03 18:11:51 2019 +0000
@@ -1,4 +1,3 @@
-# $NetBSD: versions.mk,v 1.13 2019/08/01 11:43:00 nia Exp $
+# $NetBSD: versions.mk,v 1.14 2019/11/03 18:11:51 rillig Exp $
 # Do not edit, regenerate using 'make versions'
-_VERSIONS= \
- compiler 7.4.4 asn1 5.0.9 common_test 1.17.3 crypto 4.5.1 debugger 4.2.7 dialyzer 4.0.3 diameter 2.2.1 edoc 0.11 eldap 1.2.8 erl_docgen 0.9.1 erl_interface 3.12 erts 10.4.4 et 1.6.4 eunit 2.3.7 ftp 
1.0.2 hipe 3.19.1 inets 7.0.9 jinterface 1.10 kernel 6.4.1 megaco 3.18.5 mnesia 4.16 observer 2.9.1 odbc 2.12.4 os_mon 2.5 parsetools 2.1.8 public_key 1.6.7 reltool 0.8 runtime_tools 1.13.3 sasl 3.4 
snmp 5.3 ssh 4.7.7 ssl 9.3.5 stdlib 3.9.2 syntax_tools 2.2 tftp 1.0.1 tools 3.2 wx 1.8.8 xmerl 1.3.21 
+_VERSIONS=     compiler 7.4.4 asn1 5.0.9 common_test 1.17.3 crypto 4.5.1 debugger 4.2.7 dialyzer 4.0.3 diameter 2.2.1 edoc 0.11 eldap 1.2.8 erl_docgen 0.9.1 erl_interface 3.12 erts 10.4.4 et 1.6.4 
eunit 2.3.7 ftp 1.0.2 hipe 3.19.1 inets 7.0.9 jinterface 1.10 kernel 6.4.1 megaco 3.18.5 mnesia 4.16 observer 2.9.1 odbc 2.12.4 os_mon 2.5 parsetools 2.1.8 public_key 1.6.7 reltool 0.8 runtime_tools 
1.13.3 sasl 3.4 snmp 5.3 ssh 4.7.7 ssl 9.3.5 stdlib 3.9.2 syntax_tools 2.2 tftp 1.0.1 tools 3.2 wx 1.8.8 xmerl 1.3.21 



Home | Main Index | Thread Index | Old Index