makedist.midori: automate shipping with(out) debug info
This commit is contained in:
parent
973e481068
commit
f25b677d0c
1 changed files with 14 additions and 1 deletions
|
@ -36,7 +36,11 @@ temp_dir=`mktemp -d`
|
||||||
have_7zip=`which 7za`
|
have_7zip=`which 7za`
|
||||||
|
|
||||||
if [ "$1" != "" ]; then
|
if [ "$1" != "" ]; then
|
||||||
|
if [ "$1" == "debug" ]; then
|
||||||
|
DEBUG_BUILD=1
|
||||||
|
else
|
||||||
version_tag=$1
|
version_tag=$1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# generate unique filename
|
# generate unique filename
|
||||||
|
@ -98,6 +102,11 @@ echo -n .
|
||||||
pushd $root_dir/bin > /dev/null
|
pushd $root_dir/bin > /dev/null
|
||||||
dll_recursive midori*.exe gspawn-*-helper*.exe libhunspell*.dll > $temp_dir/midori.exe.lst
|
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
|
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`
|
files=`ls | cat - $temp_dir/midori.exe.lst | sort | uniq -d`
|
||||||
rm $temp_dir/midori.exe.lst
|
rm $temp_dir/midori.exe.lst
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
@ -110,6 +119,10 @@ mkdir $workdir/bin
|
||||||
cp -L $files $workdir/bin
|
cp -L $files $workdir/bin
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
if [ "$DEBUG_BUILD" == "" ];then
|
||||||
|
find -iname *.debug -exec rm {} \;
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n .
|
echo -n .
|
||||||
|
|
||||||
# copy etc
|
# copy etc
|
||||||
|
|
Loading…
Reference in a new issue