makedist.midori: use temp dir when assembling locale list

This commit is contained in:
Paweł Forysiuk 2012-02-09 00:52:38 +01:00 committed by Christian Dywan
parent 6ff166f3ba
commit e582924a99

View file

@ -135,13 +135,13 @@ grab_files share mime
# copy locales for gtk
# so we have translated stock items, file dialogs
find share "(" -name "midori.mo" ")" > locale.list
find share "(" -name "midori.mo" ")" > $temp_dir/locale.list
mkdir -p $workdir/share/locale/
for LOCALE in $(cat 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
rm locale.list
rm $temp_dir/locale.list
popd > /dev/null
echo -n .