aboutsummaryrefslogtreecommitdiff
path: root/msys-dist.sh
blob: 01b2ade6c55e2fe5502bc861e631c9a6bab90ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if [[ ! -x melonDS.exe ]]; then
	echo "Run this script from the directory you built melonDS."
	exit 1
fi

mkdir -p dist

for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do
	cp "${lib}" dist
done