]> spindle.queued.net Git - midori/commitdiff
makedist.midori: automate shipping with(out) debug info
authorPaweł Forysiuk <tuxator@o2.pl>
Wed, 22 Feb 2012 23:15:39 +0000 (00:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 22 Feb 2012 23:54:40 +0000 (00:54 +0100)
win32/makedist/makedist.midori

index eedf52b27042065483721452da8609f9336fefce..74d144294b4ce2e31011c6ce67a6f8e26aefe76a 100755 (executable)
@@ -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