1
0

26 lines
462 B
Bash
Raw Normal View History

2021-02-12 19:15:39 +01:00
#!/bin/bash -e
if [ ! -d MultiCraft/MultiCraft.xcodeproj ]; then
echo "Run this in build/macOS"
exit 1
fi
DEST=$(pwd)
pushd ../../po
for lang in *; do
[ ${#lang} -ne 2 ] && continue
mopath=$DEST/locale/$lang/LC_MESSAGES
mkdir -p $mopath
pushd $lang
for fn in *.po; do
# brew install gettext
2022-01-03 01:00:14 +01:00
msgfmt -o $mopath/${fn/.po/.mo} $fn
2021-02-12 19:15:39 +01:00
done
popd
done
popd
find $DEST -type d -name '.git' -print0 | xargs -0 -- rm -r
2022-01-03 01:00:14 +01:00
find $DEST -type f -name '.*' -delete