Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make/unit-tests make(1): indent directives like .inf...



details:   https://anonhg.NetBSD.org/src/rev/ffb730275b08
branches:  trunk
changeset: 956217:ffb730275b08
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 24 08:46:08 2020 +0000

description:
make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.

diffstat:

 usr.bin/make/unit-tests/cond-cmp-numeric-eq.mk    |  18 +++++-----
 usr.bin/make/unit-tests/cond-cmp-numeric-ge.mk    |  26 ++++++++--------
 usr.bin/make/unit-tests/cond-cmp-numeric-gt.mk    |  26 ++++++++--------
 usr.bin/make/unit-tests/cond-cmp-numeric-le.mk    |  26 ++++++++--------
 usr.bin/make/unit-tests/cond-cmp-numeric-lt.mk    |  26 ++++++++--------
 usr.bin/make/unit-tests/cond-cmp-numeric-ne.mk    |  18 +++++-----
 usr.bin/make/unit-tests/cond-cmp-string.mk        |  14 ++++----
 usr.bin/make/unit-tests/cond-func-commands.mk     |  10 +++---
 usr.bin/make/unit-tests/cond-func-defined.mk      |  12 +++---
 usr.bin/make/unit-tests/cond-func-exists.mk       |  16 +++++-----
 usr.bin/make/unit-tests/cond-func-target.mk       |  10 +++---
 usr.bin/make/unit-tests/cond-func.mk              |  20 ++++++------
 usr.bin/make/unit-tests/cond-op-and.mk            |  10 +++---
 usr.bin/make/unit-tests/cond-op-not.mk            |   8 ++--
 usr.bin/make/unit-tests/cond-op-or.mk             |  10 +++---
 usr.bin/make/unit-tests/cond-op.mk                |  14 ++++----
 usr.bin/make/unit-tests/cond-short.mk             |   4 +-
 usr.bin/make/unit-tests/cond-token-var.mk         |  10 +++---
 usr.bin/make/unit-tests/directive-else.mk         |  16 +++++-----
 usr.bin/make/unit-tests/directive-ifndef.mk       |   8 ++--
 usr.bin/make/unit-tests/directive-undef.mk        |   4 +-
 usr.bin/make/unit-tests/directives.mk             |  14 ++++----
 usr.bin/make/unit-tests/envfirst.mk               |  14 ++++----
 usr.bin/make/unit-tests/export-variants.mk        |  14 ++++----
 usr.bin/make/unit-tests/export.mk                 |   4 +-
 usr.bin/make/unit-tests/forloop.mk                |  30 +++++++++---------
 usr.bin/make/unit-tests/modmisc.mk                |  10 +++---
 usr.bin/make/unit-tests/var-op-assign.mk          |  10 +++---
 usr.bin/make/unit-tests/varmisc.mk                |  16 +++++-----
 usr.bin/make/unit-tests/varmod-defined.mk         |   6 +-
 usr.bin/make/unit-tests/varmod-edge.mk            |   6 +-
 usr.bin/make/unit-tests/varmod-exclam-shell.mk    |  12 +++---
 usr.bin/make/unit-tests/varmod-l-name-to-value.mk |  10 +++---
 usr.bin/make/unit-tests/varmod-match-escape.mk    |   4 +-
 usr.bin/make/unit-tests/varmod-order-reverse.mk   |   4 +-
 usr.bin/make/unit-tests/varmod-order-shuffle.mk   |   8 ++--
 usr.bin/make/unit-tests/varmod-order.mk           |   4 +-
 usr.bin/make/unit-tests/varmod-subst-regex.mk     |  16 +++++-----
 usr.bin/make/unit-tests/varmod-subst.mk           |  36 +++++++++++-----------
 usr.bin/make/unit-tests/varmod-to-lower.mk        |   8 ++--
 usr.bin/make/unit-tests/varmod-to-upper.mk        |   8 ++--
 usr.bin/make/unit-tests/varmod-undefined.mk       |   8 ++--
 usr.bin/make/unit-tests/varname-dot-newline.mk    |   6 +-
 usr.bin/make/unit-tests/varname-dot-shell.mk      |   6 +-
 44 files changed, 280 insertions(+), 280 deletions(-)

diffs (truncated from 1926 to 300 lines):

diff -r 85f1edb6a3e4 -r ffb730275b08 usr.bin/make/unit-tests/cond-cmp-numeric-eq.mk
--- a/usr.bin/make/unit-tests/cond-cmp-numeric-eq.mk    Sat Oct 24 08:34:59 2020 +0000
+++ b/usr.bin/make/unit-tests/cond-cmp-numeric-eq.mk    Sat Oct 24 08:46:08 2020 +0000
@@ -1,43 +1,43 @@
-# $NetBSD: cond-cmp-numeric-eq.mk,v 1.3 2020/09/11 15:33:28 rillig Exp $
+# $NetBSD: cond-cmp-numeric-eq.mk,v 1.4 2020/10/24 08:46:08 rillig Exp $
 #
 # Tests for numeric comparisons with the == operator in .if conditions.
 
 # This comparison yields the same result, whether numeric or character-based.
 .if 1 == 1
 .else
-.error
+.  error
 .endif
 
 # This comparison yields the same result, whether numeric or character-based.
 .if 1 == 2
-.error
+.  error
 .endif
 
 .if 2 == 1
-.error
+.  error
 .endif
 
 # Scientific notation is supported, as per strtod.
 .if 2e7 == 2000e4
 .else
-.error
+.  error
 .endif
 
 .if 2000e4 == 2e7
 .else
-.error
+.  error
 .endif
 
 # Trailing zeroes after the decimal point are irrelevant for the numeric
 # value.
 .if 3.30000 == 3.3
 .else
-.error
+.  error
 .endif
 
 .if 3.3 == 3.30000
 .else
-.error
+.  error
 .endif
 
 # As of 2020-08-23, numeric comparison is implemented as parsing both sides
@@ -46,7 +46,7 @@
 # be equal.
 .if 1.000000000000000001 == 1.000000000000000002
 .else
-.error
+.  error
 .endif
 
 
diff -r 85f1edb6a3e4 -r ffb730275b08 usr.bin/make/unit-tests/cond-cmp-numeric-ge.mk
--- a/usr.bin/make/unit-tests/cond-cmp-numeric-ge.mk    Sat Oct 24 08:34:59 2020 +0000
+++ b/usr.bin/make/unit-tests/cond-cmp-numeric-ge.mk    Sat Oct 24 08:46:08 2020 +0000
@@ -1,65 +1,65 @@
-# $NetBSD: cond-cmp-numeric-ge.mk,v 1.1 2020/08/23 13:50:17 rillig Exp $
+# $NetBSD: cond-cmp-numeric-ge.mk,v 1.2 2020/10/24 08:46:08 rillig Exp $
 #
 # Tests for numeric comparisons with the >= operator in .if conditions.
 
 # When both sides are equal, the >= operator always yields true.
 .if 1 >= 1
 .else
-.error
+.  error
 .endif
 
 # This comparison yields the same result, whether numeric or character-based.
 .if 1 >= 2
-.error
+.  error
 .endif
 
 .if 2 >= 1
 .else
-.error
+.  error
 .endif
 
 # If this comparison were character-based instead of numerical, the
 # 5 would be >= 14 since its first digit is greater.
 .if 5 >= 14
-.error
+.  error
 .endif
 
 .if 14 >= 5
 .else
-.error
+.  error
 .endif
 
 # Scientific notation is supported, as per strtod.
 .if 2e7 >= 1e8
-.error
+.  error
 .endif
 
 .if 1e8 >= 2e7
 .else
-.error
+.  error
 .endif
 
 # Floating pointer numbers can be compared as well.
 # This might be tempting to use for version numbers, but there are a few pitfalls.
 .if 3.141 >= 111.222
-.error
+.  error
 .endif
 
 .if 111.222 >= 3.141
 .else
-.error
+.  error
 .endif
 
 # When parsed as a version number, 3.30 is greater than 3.7.
 # Since make parses numbers as plain numbers, that leads to wrong results.
 # Numeric comparisons are not suited for comparing version number.
 .if 3.30 >= 3.7
-.error
+.  error
 .endif
 
 .if 3.7 >= 3.30
 .else
-.error
+.  error
 .endif
 
 # As of 2020-08-23, numeric comparison is implemented as parsing both sides
@@ -68,7 +68,7 @@
 # be equal.
 .if 1.000000000000000001 >= 1.000000000000000002
 .else
-.error
+.  error
 .endif
 
 all:
diff -r 85f1edb6a3e4 -r ffb730275b08 usr.bin/make/unit-tests/cond-cmp-numeric-gt.mk
--- a/usr.bin/make/unit-tests/cond-cmp-numeric-gt.mk    Sat Oct 24 08:34:59 2020 +0000
+++ b/usr.bin/make/unit-tests/cond-cmp-numeric-gt.mk    Sat Oct 24 08:46:08 2020 +0000
@@ -1,64 +1,64 @@
-# $NetBSD: cond-cmp-numeric-gt.mk,v 1.1 2020/08/23 13:50:17 rillig Exp $
+# $NetBSD: cond-cmp-numeric-gt.mk,v 1.2 2020/10/24 08:46:08 rillig Exp $
 #
 # Tests for numeric comparisons with the > operator in .if conditions.
 
 # When both sides are equal, the > operator always yields false.
 .if 1 > 1
-.error
+.  error
 .endif
 
 # This comparison yields the same result, whether numeric or character-based.
 .if 1 > 2
-.error
+.  error
 .endif
 
 .if 2 > 1
 .else
-.error
+.  error
 .endif
 
 # If this comparison were character-based instead of numerical, the
 # 5 would be > 14 since its first digit is greater.
 .if 5 > 14
-.error
+.  error
 .endif
 
 .if 14 > 5
 .else
-.error
+.  error
 .endif
 
 # Scientific notation is supported, as per strtod.
 .if 2e7 > 1e8
-.error
+.  error
 .endif
 
 .if 1e8 > 2e7
 .else
-.error
+.  error
 .endif
 
 # Floating pointer numbers can be compared as well.
 # This might be tempting to use for version numbers, but there are a few pitfalls.
 .if 3.141 > 111.222
-.error
+.  error
 .endif
 
 .if 111.222 > 3.141
 .else
-.error
+.  error
 .endif
 
 # When parsed as a version number, 3.30 is greater than 3.7.
 # Since make parses numbers as plain numbers, that leads to wrong results.
 # Numeric comparisons are not suited for comparing version number.
 .if 3.30 > 3.7
-.error
+.  error
 .endif
 
 .if 3.7 > 3.30
 .else
-.error
+.  error
 .endif
 
 # As of 2020-08-23, numeric comparison is implemented as parsing both sides
@@ -66,7 +66,7 @@
 # typically 16 or 17 significant digits, therefore these two numbers seem to
 # be equal.
 .if 1.000000000000000001 > 1.000000000000000002
-.error
+.  error
 .endif
 
 all:
diff -r 85f1edb6a3e4 -r ffb730275b08 usr.bin/make/unit-tests/cond-cmp-numeric-le.mk
--- a/usr.bin/make/unit-tests/cond-cmp-numeric-le.mk    Sat Oct 24 08:34:59 2020 +0000
+++ b/usr.bin/make/unit-tests/cond-cmp-numeric-le.mk    Sat Oct 24 08:46:08 2020 +0000
@@ -1,53 +1,53 @@
-# $NetBSD: cond-cmp-numeric-le.mk,v 1.1 2020/08/23 13:50:17 rillig Exp $
+# $NetBSD: cond-cmp-numeric-le.mk,v 1.2 2020/10/24 08:46:08 rillig Exp $
 #
 # Tests for numeric comparisons with the <= operator in .if conditions.
 
 # When both sides are equal, the <= operator always yields true.
 .if 1 <= 1
 .else
-.error
+.  error
 .endif
 
 # This comparison yields the same result, whether numeric or character-based.
 .if 1 <= 2
 .else
-.error
+.  error
 .endif
 
 .if 2 <= 1
-.error
+.  error
 .endif
 
 # If this comparison were character-based instead of numerical, the
 # 5 would be >= 14 since its first digit is greater.
 .if 5 <= 14
 .else
-.error
+.  error
 .endif
 
 .if 14 <= 5
-.error
+.  error
 .endif
 
 # Scientific notation is supported, as per strtod.
 .if 2e7 <= 1e8
 .else
-.error
+.  error
 .endif
 
 .if 1e8 <= 2e7
-.error
+.  error
 .endif
 
 # Floating pointer numbers can be compared as well.
 # This might be tempting to use for version numbers, but there are a few pitfalls.
 .if 3.141 <= 111.222
 .else



Home | Main Index | Thread Index | Old Index