]> spindle.queued.net Git - midori/commitdiff
makedist.midori: Fix packaging of translations
authorPaweł Forysiuk <tuxator@o2.pl>
Sun, 26 Feb 2012 23:34:26 +0000 (00:34 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 28 Feb 2012 22:21:36 +0000 (23:21 +0100)
win32/makedist/makedist.midori

index 74d144294b4ce2e31011c6ce67a6f8e26aefe76a..8e0f3770b4461859f86a10b03a7c00602ce7460c 100755 (executable)
@@ -156,15 +156,17 @@ grab_files share midori
 grab_files share icons
 grab_files share MS-Windows
 grab_files share mime
+grab_files share midori.mo
 
 grab_files share webkitgtk-1.0
 
 # copy locales for gtk
 # so we have translated stock items, file dialogs
 
+pushd $root_dir > /dev/null
 find share "(" -name "midori.mo" ")" >  $temp_dir/locale.list
 mkdir -p $workdir/share/locale/
-for LOCALE in $(cat locale.list); do
+for LOCALE in $(cat $temp_dir/locale.list); do
         LOCALE=$(echo $LOCALE|awk -F/ '{print $3}')
         cp /usr/share/locale/$LOCALE/LC_MESSAGES/gtk20.mo $workdir/share/locale/$LOCALE/LC_MESSAGES/
 done