have_7zip=`which 7za`
if [ "$1" != "" ]; then
- version_tag=$1
+ if [ "$1" == "debug" ]; then
+ DEBUG_BUILD=1
+ else
+ version_tag=$1
+ fi
fi
# generate unique filename
pushd $root_dir/bin > /dev/null
dll_recursive midori*.exe gspawn-*-helper*.exe libhunspell*.dll > $temp_dir/midori.exe.lst
dll_recursive ../lib/gio/modules/*.dll >> $temp_dir/midori.exe.lst
+
+if [ "$DEBUG_BUILD" != "" ]; then
+ dll_recursive gdb.exe GtkLauncher.exe >> $temp_dir/midori.exe.lst
+fi
+
files=`ls | cat - $temp_dir/midori.exe.lst | sort | uniq -d`
rm $temp_dir/midori.exe.lst
popd > /dev/null
cp -L $files $workdir/bin
popd > /dev/null
+if [ "$DEBUG_BUILD" == "" ];then
+ find -iname *.debug -exec rm {} \;
+fi
+
echo -n .
# copy etc