From 3626877554b6c567d43336ec49414cedfe487260 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 31 May 2024 18:30:10 +0200 Subject: Initial commit --- etc/defaults/shell/TARGETS | 43 ++++++++++++++++++++++++++++++++++++ etc/defaults/shell/test.TARGETS | 21 ++++++++++++++++++ etc/defaults/shell/test/test.TARGETS | 1 + 3 files changed, 65 insertions(+) create mode 100644 etc/defaults/shell/TARGETS create mode 100644 etc/defaults/shell/test.TARGETS create mode 100644 etc/defaults/shell/test/test.TARGETS (limited to 'etc/defaults/shell') diff --git a/etc/defaults/shell/TARGETS b/etc/defaults/shell/TARGETS new file mode 100644 index 0000000..378611c --- /dev/null +++ b/etc/defaults/shell/TARGETS @@ -0,0 +1,43 @@ +{ "defaults": + { "type": "configure" + , "target": "defaults (unconfigured)" + , "arguments_config": ["TOOLCHAIN_CONFIG"] + , "config": + { "type": "let*" + , "bindings": + [ [ "shell toolchain" + , { "type": "lookup" + , "map": + { "type": "var" + , "name": "TOOLCHAIN_CONFIG" + , "default": {"type": "empty_map"} + } + , "key": "shell" + , "default": {"type": "empty_map"} + } + ] + , [ "sh" + , { "type": "lookup" + , "map": {"type": "var", "name": "shell toolchain"} + , "key": "sh" + , "default": "/bin/sh" + } + ] + , [ "PATH" + , { "type": "lookup" + , "map": {"type": "var", "name": "shell toolchain"} + , "key": "PATH" + , "default": [] + } + ] + ] + , "body": {"type": "env", "vars": ["sh", "PATH"]} + } + } +, "defaults (unconfigured)": + { "type": "defaults" + , "arguments_config": ["sh", "PATH"] + , "sh": [{"type": "var", "name": "sh"}] + , "PATH": {"type": "var", "name": "PATH"} + } +} diff --git a/etc/defaults/shell/test.TARGETS b/etc/defaults/shell/test.TARGETS new file mode 100644 index 0000000..7c099ff --- /dev/null +++ b/etc/defaults/shell/test.TARGETS @@ -0,0 +1,21 @@ +{ "defaults": + { "type": "defaults" + , "arguments_config": ["TOOLCHAIN_CONFIG"] + , "PATH": + { "type": "lookup" + , "key": "PATH" + , "default": [] + , "map": + { "type": "lookup" + , "key": "test" + , "default": {"type": "empty_map"} + , "map": + { "type": "var" + , "name": "TOOLCHAIN_CONFIG" + , "default": {"type": "empty_map"} + } + } + } + , "base": [["@", "base", "shell", "defaults"]] + } +} diff --git a/etc/defaults/shell/test/test.TARGETS b/etc/defaults/shell/test/test.TARGETS new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/etc/defaults/shell/test/test.TARGETS @@ -0,0 +1 @@ +{} -- cgit v1.2.3