head	1.1;
access;
symbols
	RELENG_9:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2012.10.03.00.41.46;	author marcel;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2012.10.03.00.41.46;	author svnexp;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2014.03.16.00.01.46;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 241146 on 2012-10-03 00:41:46Z by marcel

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg
@
text
@
LIST= one two three
LIST+= four five six

FU_mod-ts = a / b / cool

AAA= a a a
B.aaa= Baaa

all:   mod-ts

# Use print or printf iff they are builtin.
# XXX note that this causes problems, when make decides 
# there is no need to use a shell, so avoid where possible.
.if ${type print 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= print -r --
.elif ${type printf 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= printf '%s\n'
.else
PRINT= echo
.endif

mod-ts:
	@@echo 'LIST="${LIST}"'
	@@echo 'LIST:ts,="${LIST:ts,}"'
	@@echo 'LIST:ts/:tu="${LIST:ts/:tu}"'
	@@echo 'LIST:ts::tu="${LIST:ts::tu}"'
	@@echo 'LIST:ts:tu="${LIST:ts:tu}"'
	@@echo 'LIST:tu:ts/="${LIST:tu:ts/}"'
	@@echo 'LIST:ts:="${LIST:ts:}"'
	@@echo 'LIST:ts="${LIST:ts}"'
	@@echo 'LIST:ts:S/two/2/="${LIST:ts:S/two/2/}"'
	@@echo 'LIST:S/two/2/:ts="${LIST:S/two/2/:ts}"'
	@@echo 'LIST:ts/:S/two/2/="${LIST:ts/:S/two/2/}"'
	@@echo "Pretend the '/' in '/n' etc. below are back-slashes."
	@@${PRINT} 'LIST:ts/n="${LIST:ts\n}"'
	@@${PRINT} 'LIST:ts/t="${LIST:ts\t}"'
	@@${PRINT} 'LIST:ts/012:tu="${LIST:ts\012:tu}"'
	@@${PRINT} 'LIST:tx="${LIST:tx}"'
	@@${PRINT} 'LIST:ts/x:tu="${LIST:ts\x:tu}"'
	@@${PRINT} 'FU_$@@="${FU_${@@:ts}:ts}"'
	@@${PRINT} 'FU_$@@:ts:T="${FU_${@@:ts}:ts:T}" == cool?'
	@@${PRINT} 'B.$${AAA:ts}="${B.${AAA:ts}}" == Baaa?'
@


1.1.2.1
log
@file modts was added on branch RELENG_9 on 2014-03-16 00:01:46 +0000
@
text
@d1 43
@


1.1.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263212
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 43

LIST= one two three
LIST+= four five six

FU_mod-ts = a / b / cool

AAA= a a a
B.aaa= Baaa

all:   mod-ts

# Use print or printf iff they are builtin.
# XXX note that this causes problems, when make decides 
# there is no need to use a shell, so avoid where possible.
.if ${type print 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= print -r --
.elif ${type printf 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= printf '%s\n'
.else
PRINT= echo
.endif

mod-ts:
	@@echo 'LIST="${LIST}"'
	@@echo 'LIST:ts,="${LIST:ts,}"'
	@@echo 'LIST:ts/:tu="${LIST:ts/:tu}"'
	@@echo 'LIST:ts::tu="${LIST:ts::tu}"'
	@@echo 'LIST:ts:tu="${LIST:ts:tu}"'
	@@echo 'LIST:tu:ts/="${LIST:tu:ts/}"'
	@@echo 'LIST:ts:="${LIST:ts:}"'
	@@echo 'LIST:ts="${LIST:ts}"'
	@@echo 'LIST:ts:S/two/2/="${LIST:ts:S/two/2/}"'
	@@echo 'LIST:S/two/2/:ts="${LIST:S/two/2/:ts}"'
	@@echo 'LIST:ts/:S/two/2/="${LIST:ts/:S/two/2/}"'
	@@echo "Pretend the '/' in '/n' etc. below are back-slashes."
	@@${PRINT} 'LIST:ts/n="${LIST:ts\n}"'
	@@${PRINT} 'LIST:ts/t="${LIST:ts\t}"'
	@@${PRINT} 'LIST:ts/012:tu="${LIST:ts\012:tu}"'
	@@${PRINT} 'LIST:tx="${LIST:tx}"'
	@@${PRINT} 'LIST:ts/x:tu="${LIST:ts\x:tu}"'
	@@${PRINT} 'FU_$@@="${FU_${@@:ts}:ts}"'
	@@${PRINT} 'FU_$@@:ts:T="${FU_${@@:ts}:ts:T}" == cool?'
	@@${PRINT} 'B.$${AAA:ts}="${B.${AAA:ts}}" == Baaa?'
@


