[Xfce4-commits] <midori:master> makedist.midori: automate shipping with(out) debug info

Christian Dywan noreply at xfce.org
Thu Feb 23 00:56:01 CET 2012


Updating branch refs/heads/master
         to f25b677d0c1bae10df4fadaeba60715abd370aad (commit)
       from 973e481068aef9807c439530735ce1c58c6a0364 (commit)

commit f25b677d0c1bae10df4fadaeba60715abd370aad
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Feb 23 00:15:39 2012 +0100

    makedist.midori: automate shipping with(out) debug info

 win32/makedist/makedist.midori |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/win32/makedist/makedist.midori b/win32/makedist/makedist.midori
index eedf52b..74d1442 100755
--- a/win32/makedist/makedist.midori
+++ b/win32/makedist/makedist.midori
@@ -36,7 +36,11 @@ temp_dir=`mktemp -d`
 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
@@ -98,6 +102,11 @@ echo -n .
 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
@@ -110,6 +119,10 @@ mkdir $workdir/bin
 cp -L $files $workdir/bin
 popd > /dev/null
 
+if [ "$DEBUG_BUILD" == "" ];then
+    find -iname *.debug -exec rm {} \;
+fi
+
 echo -n .
 
 # copy etc


More information about the Xfce4-commits mailing list