melonDS/msys-dist.sh
2020-06-02 02:04:58 +02:00

14 lines
259 B
Bash
Executable File

#!/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 dist