13
0
livetrax/tools/windows_packaging/copydll-waves.sh
Tim Mayberry 2379321355 Change windows packaging to have separate scripts for Fedora 19 and 20
A large part of the packaging is shared in package.sh, this approach should
work on windows with another dll list in package-waves.sh and redefined
copydll function(which I've added untested as copydll-waves.sh)

Also add support for 64bit mingw builds via ARCH env variable. If unset
defaults to 32bit build
2014-05-14 09:47:59 +10:00

36 lines
617 B
Bash
Executable File

#!/bin/bash
function copydll () {
if [ -f $GTK/bin/$1 ] ; then
echo "cp $GTK/bin/$1 $2"
cp $GTK/bin/$1 $2 || return 1
return 0
fi
if [ -f $GTK/lib/$1 ] ; then
echo "cp $GTK/lib/$1 $2"
cp $GTK/lib/$1 $2 || return 1
return 0
fi
if [ -f $A3/bin/$1 ] ; then
echo "cp $A3/bin/$1 $2"
cp $A3/bin/$1 $2 || return 1
return 0
fi
if [ -f $A3/lib/$1 ] ; then
echo "$A3/lib/$1 $2"
cp $A3/lib/$1 $2 || return 1
return 0
fi
if which $1 ; then
echo "cp `which $1` $2"
cp `which $1` $2 || return 1
return 0
fi
echo "there is no $1"
return 1
}