13 lines
411 B
Plaintext
Executable File
13 lines
411 B
Plaintext
Executable File
#! /usr/bin/env -S jq --raw-output --from-file
|
|
.metadata.component.properties as $props |
|
|
$props |
|
|
["."] + (
|
|
map( select(.name | .[0:10] == "nim:srcDir") ) +
|
|
map( select(.name | .[0:10] == "nim:binDir") ) |
|
|
map(.value)) | .[-1] as $binDir |
|
|
|
|
$props |
|
|
map( select(.name | .[0:8] == "nim:bin:") ) |
|
|
map( ": \($binDir)/\(.value).nim |> !nim_bin |> $(BIN_DIR)/\(.name[8:]) {bin}" ) |
|
|
join("\n")
|