aboutsummaryrefslogtreecommitdiff
path: root/msys-dist.sh
blob: f2e59418fa3aee841e1c1f78f97e1faceb2e66db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

cp melonDS.exe romlist.bin dist