blob: f99e5441a8fb604201a2fc65aadb5b9dd9582e28 (
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
27
28
29
30
31
|
# $NetBSD: varmod-to-title.mk,v 1.1 2024/07/01 21:02:26 sjg Exp $
#
# Tests for the :tc variable modifier, which converts the expression value
# to lowercase.
#
# TODO: What about non-ASCII characters? ISO-8859-1, UTF-8?
.if ${:UUPPER:tt} != "Upper"
. error
.endif
.if ${:Ulower:tt} != "Lower"
. error
.endif
.if ${:UMixeD case.:tt} != "Mixed Case."
. error
.endif
# The ':tt' modifier works on the whole string, without splitting it into
# words.
.if ${:Umultiple spaces:tt} != "Multiple Spaces"
. error
.endif
# Note words only count if separated by spaces
.if ${:Uthis&that or os/2:tt} != "This&that Or Os/2"
. error
.endif
all: .PHONY
|