aboutsummaryrefslogtreecommitdiff
path: root/msys-dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'msys-dist.sh')
-rwxr-xr-xmsys-dist.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/msys-dist.sh b/msys-dist.sh
new file mode 100755
index 0000000..f2e5941
--- /dev/null
+++ b/msys-dist.sh
@@ -0,0 +1,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