Experimental package creation tool for MinGW.org
Révision | 43fec02b53488a8953cc4115db74c311bcb0ffc0 (tree) |
---|---|
l'heure | 2020-09-19 23:52:58 |
Auteur | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Support just-in-time package list evaluation.
* src/modules/actions.sh (package_staged_distribution): Evaluate...
($package_list): ...this indirect variable reference, using "eval", to
expand any deferred command substitutions or variable references.
@@ -213,13 +213,14 @@ | ||
213 | 213 | |
214 | 214 | package_staged_distribution() { |
215 | 215 | for component |
216 | - do packing_list=`sanitized_name $component`_package_content | |
216 | + do local packing_list=`sanitized_name $component`_package_content | |
217 | 217 | case $component in |
218 | 218 | *:*) package="`IFS=:; set -- $component; echo $1`" |
219 | 219 | component="`IFS=:; set -- $component; echo $2`" ;; |
220 | 220 | *) package=$PACKAGE ;; |
221 | 221 | esac |
222 | 222 | package="$package-$TAGGED_VERSION-$ARCH-$component${PKGEXT-".tar"}" |
223 | + eval $packing_list='`eval echo $'$packing_list'`' | |
223 | 224 | step "storing package '$package'" |
224 | 225 | if test "x${COMPRESS_CMD-"none"}" = xnone |
225 | 226 | then eval ${ARCHIVE_CMD-"tar"}' cPhf ../$package --hard-dereference $'$packing_list |