crueter
1 week ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
1 additions and
1 deletions
-
tools/cpm/common.sh
|
|
@ -23,7 +23,7 @@ MAXDEPTH=3 |
|
|
# For your project you'll want to change this to define what dirs you have cpmfiles in |
|
|
# For your project you'll want to change this to define what dirs you have cpmfiles in |
|
|
# Remember to account for the MAXDEPTH variable! |
|
|
# Remember to account for the MAXDEPTH variable! |
|
|
# Adding ./ before each will help to remove duplicates |
|
|
# Adding ./ before each will help to remove duplicates |
|
|
CPMFILES=$(find . -maxdepth "$MAXDEPTH" -name cpmfile.json | sort | uniq) |
|
|
|
|
|
|
|
|
CPMFILES=$(find . src -maxdepth "$MAXDEPTH" -name cpmfile.json | sort | uniq) |
|
|
|
|
|
|
|
|
# shellcheck disable=SC2016 |
|
|
# shellcheck disable=SC2016 |
|
|
PACKAGES=$(echo "$CPMFILES" | xargs jq -s 'reduce .[] as $item ({}; . * $item)') |
|
|
PACKAGES=$(echo "$CPMFILES" | xargs jq -s 'reduce .[] as $item ({}; . * $item)') |
|
|
|