diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /src/kmk/testcase | |
parent | Initial commit. (diff) | |
download | kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.tar.xz kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/kmk/testcase')
-rw-r--r-- | src/kmk/testcase/testcase-export.kmk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/kmk/testcase/testcase-export.kmk b/src/kmk/testcase/testcase-export.kmk new file mode 100644 index 0000000..5d0c4b4 --- /dev/null +++ b/src/kmk/testcase/testcase-export.kmk @@ -0,0 +1,48 @@ + + +var0 = value0 +var1 = value1 +var2 = value2 +var3 = value3 +var4 = value4 +var5 = value5 +var6 = value6 +var7 = value7 +var8 = value8 +var9 = value9 + +varname1 = var1 +varname2 = var2 +varname3 = var3 +varname4 = var4 +varname5 = var5 +varname5 = var5 +varname6 = var6 +varname7 = var7 +varname8 = var8 +varname9 = var9 + +export var0 var8 $(varname1) $(subst foo,var, foo2 ) +export $(foreach x, 3 4 \ +,$(subst \ +odd(, \ + parenthesis parsing behaviour), dont-mind-this-type{ except if you put a ${dollar} in front of it, \ +$(varname$(x)) \ +)\ +) + +export ${foreach x, 5 \ +,${subst \ +odd{, \ + parenthesis parsing behaviour}, dont-mind-this-type( \ + except if you put a $(dollar) in front of it; two dollars $$(does do the trick though, \ +${varname$x}} \ +}\ +} + +export $ ${varname6} +export $(varname7$) + +all: + kmk_ash -c "export | kmk_sed '/var/!d' + |