Commit 048903cb authored by Lucas Cordiviola's avatar Lucas Cordiviola
Browse files

New win script

parent 19c567ce
#!/bin/sh
# This script is for use with fluidsynth~.dll as argument
arch="none"
error() {
echo "$@" 1>&2
}
NTLDD=$(which ntldd 2>/dev/null)
if [ "x${NTLDD}" = "x" ]; then
error "no 'ntldd' binary found"
exit 0
fi
arch() {
if file "$1" | grep -w "PE32+" >/dev/null; then
arch="w64"
return
fi
if file "$1" | grep -w "PE32" >/dev/null; then
arch="w32"
return
fi
}
arch "$1"
./localdeps.win.sh "$1"
# run again the script on each dep.
for filename in *."${arch}"; do
./localdeps.win.sh "$filename"
done
# Change extension of $1.
FILE="$1"
FILEFOO="${FILE%%.*}"
if [ "${arch}" = "w64" ]; then
mv "$1" "${FILEFOO}.m_amd64"
fi
if [ "${arch}" = "w32" ]; then
mv "$1" "${FILEFOO}.m_i386"
fi
# Remove scripts from install dir.
rm ./localdeps.win.sh
rm ./windep.sh
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment