Re-enable scripted dll install (Sorry, pushed wrong file before)

This commit is contained in:
dolphin6k 2020-10-18 21:50:20 +09:00
parent e260456270
commit b7c312ed5e
2 changed files with 50 additions and 28 deletions

View file

@ -1,6 +1,20 @@
#!/bin/sh
for dll in `ldd tuxpaint.exe $1/tuxpaint-config.exe 2>&1 | grep /mingw | awk '{print $3}' | sort | uniq`
do
cp $dll $2
done
find_depends(){
for dllpath in `ntldd $@ | grep mingw | awk '{print $3}' | sort | uniq`
do
dllname=`basename $dllpath`
if ! grep -q $dllname dlllist; then
echo $dllpath >> dlllist
echo -n .
cp $dllpath $DESTDIR/
find_depends $dllpath
fi
done
}
DESTDIR=$3
echo > dlllist
find_depends $1 $2
echo