build/pymake/tests/comment-parsing.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # where do comments take effect?
michael@0 2
michael@0 3 VAR = val1 # comment
michael@0 4 VAR2 = lit2\#hash
michael@0 5 VAR2_1 = lit2.1\\\#hash
michael@0 6 VAR3 = val3
michael@0 7 VAR4 = lit4\\#backslash
michael@0 8 VAR4_1 = lit4\\\\#backslash
michael@0 9 VAR5 = lit5\char
michael@0 10 VAR6 = lit6\\char
michael@0 11 VAR7 = lit7\\
michael@0 12 VAR8 = lit8\\\\
michael@0 13 VAR9 = lit9\\\\extra
michael@0 14 # This comment extends to the next line \
michael@0 15 VAR3 = ignored
michael@0 16
michael@0 17 all:
michael@0 18 test "$(VAR)" = "val1 "
michael@0 19 test "$(VAR2)" = "lit2#hash"
michael@0 20 test '$(VAR2_1)' = 'lit2.1\#hash'
michael@0 21 test "$(VAR3)" = "val3"
michael@0 22 test '$(VAR4)' = 'lit4\'
michael@0 23 test '$(VAR4_1)' = 'lit4\\'
michael@0 24 test '$(VAR5)' = 'lit5\char'
michael@0 25 test '$(VAR6)' = 'lit6\\char'
michael@0 26 test '$(VAR7)' = 'lit7\\'
michael@0 27 test '$(VAR8)' = 'lit8\\\\'
michael@0 28 test '$(VAR9)' = 'lit9\\\\extra'
michael@0 29 @echo "TEST-PASS"

mercurial