Browse Source

Fix bad dist paths due to inadvertent ShellCheck "fix"

Actually ShellCheck was *right* that the variable expansion needed to
take care of spaces in paths, but the fix (g:b68913c in ffoo repo) was
totally wrong and only broke things.

Lessons learned:

 *  *Do* run ShellCheck et al., but still **DO CAREFULLY** consider
    effects in the particular context.

 *  Too much coffee, repetitive work *and* distraction is a good way
    to ask for trouble.
Alois Mahdal 9 years ago
parent
commit
d6ef9dadb7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/build.sh

+ 1
- 1
src/include/build.sh View File

67
     local version=$(get_version)
67
     local version=$(get_version)
68
     local dirname=$MKIT_PKGNAME-$version
68
     local dirname=$MKIT_PKGNAME-$version
69
     mkdir -p "$dirname"
69
     mkdir -p "$dirname"
70
-    cp -R "$(ini values "lists:dist")" "$dirname"
70
+    ini values "lists:dist" | xargs -I DIST_ITEM cp -R DIST_ITEM "$dirname"
71
     sed -i -e "s/^VERSION = .*/VERSION = $version/" "$dirname/config.mk"
71
     sed -i -e "s/^VERSION = .*/VERSION = $version/" "$dirname/config.mk"
72
     tar -cf "$dirname.tar" "$dirname"
72
     tar -cf "$dirname.tar" "$dirname"
73
     gzip "$dirname.tar"
73
     gzip "$dirname.tar"