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 # copy locales for gtk
# so we have translated stock items, file dialogs # 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/ mkdir -p $workdir/share/locale/
for LOCALE in $(cat locale.list); do for LOCALE in $(cat locale.list); do
LOCALE=$(echo $LOCALE|awk -F/ '{print $3}') LOCALE=$(echo $LOCALE|awk -F/ '{print $3}')
cp /usr/share/locale/$LOCALE/LC_MESSAGES/gtk20.mo $workdir/share/locale/$LOCALE/LC_MESSAGES/ cp /usr/share/locale/$LOCALE/LC_MESSAGES/gtk20.mo $workdir/share/locale/$LOCALE/LC_MESSAGES/
done done
rm locale.list rm $temp_dir/locale.list
popd > /dev/null popd > /dev/null
echo -n . echo -n .