build/pymake/tests/patsubst.mk

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 all:
michael@0 2 test "$(patsubst foo,%.bar,foo)" = "%.bar"
michael@0 3 test "$(patsubst \%word,replace,word %word other)" = "word replace other"
michael@0 4 test "$(patsubst %.c,\%%.o,foo.c bar.o baz.cpp)" = "%foo.o bar.o baz.cpp"
michael@0 5 test "$(patsubst host_%.c,host_%.o,dir/host_foo.c host_bar.c)" = "dir/host_foo.c host_bar.o"
michael@0 6 test "$(patsubst foo,bar,dir/foo foo baz)" = "dir/foo bar baz"
michael@0 7 @echo TEST-PASS

mercurial