Skip to content

Commit

Permalink
Auto install packages in build-mingw.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kibook committed Apr 8, 2024
1 parent b9345a9 commit bb9c59f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build-mingw.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/sh

set -e

out=build/$MSYSTEM

make
for module in gcc make pkgconf libxml2 libxslt libsystre vim
do
pacman --no-confirm -S --needed ${MINGW_PACKAGE_PREFIX}-${module}
done

mkdir -p "$out"
cp tools/s1kd-*/s1kd-*.exe "$out"
ldd "$out"/s1kd-*.exe | awk '{print $3}' | grep '^/mingw' | sort -u | xargs cp -t "$out"
make -j$(nproc)
cp tools/*/*.exe "$out"
ldd "$out"/*.exe | awk '{print $3}' | grep '^/mingw' | sort -u | xargs cp -t "$out"

0 comments on commit bb9c59f

Please sign in to comment.