cookutils diff modules/deps @ rev 1008
cook, modules/deps, doc/receipts-v2.md: introduce "compiling sets"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 17 12:47:48 2017 +0200 (2017-11-17) |
parents | 75b330dd2734 |
children | 845d62611d92 |
line diff
1.1 --- a/modules/deps Tue Nov 07 10:38:12 2017 +0200 1.2 +++ b/modules/deps Fri Nov 17 12:47:48 2017 +0200 1.3 @@ -277,14 +277,20 @@ 1.4 # Return all the names of packages bundled in this receipt 1.5 1.6 all_names() { 1.7 - local split=" $SPLIT " 1.8 - if [ "${split/ $PACKAGE /}" != "$split" ]; then 1.9 + # Get package names from $SPLIT variable 1.10 + local split=$(echo $SPLIT \ 1.11 + | awk ' 1.12 + BEGIN { RS = " "; FS = ":"; } 1.13 + { print $1; }' \ 1.14 + | tr '\n' ' ') 1.15 + local split_space=" $split " 1.16 + if [ "${split_space/ $PACKAGE /}" != "$split_space" ]; then 1.17 # $PACKAGE included somewhere in $SPLIT (probably in the end). 1.18 # We should build packages in the order defined in the $SPLIT. 1.19 - echo $SPLIT 1.20 + echo $split 1.21 else 1.22 # We'll build the $PACKAGE, then all defined in the $SPLIT. 1.23 - echo $PACKAGE $SPLIT 1.24 + echo $PACKAGE $split 1.25 fi 1.26 } 1.27