blob: 44116fd3eee227d4971a52f073e54a0b1797b4ca (
plain) (
blame)
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
26
|
# $NetBSD: varmod-to-lower.mk,v 1.6 2022/11/29 23:54:55 rillig Exp $
#
# Tests for the :tl variable modifier, which converts the expression value
# to lowercase.
#
# TODO: What about non-ASCII characters? ISO-8859-1, UTF-8?
.if ${:UUPPER:tl} != "upper"
. error
.endif
.if ${:Ulower:tl} != "lower"
. error
.endif
.if ${:UMixeD case.:tl} != "mixed case."
. error
.endif
# The ':tl' modifier works on the whole string, without splitting it into
# words.
.if ${:Umultiple spaces:tl} != "multiple spaces"
. error
.endif
all: .PHONY
|