You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/checkout-translations-branch

23 lines
299 B

#!/bin/sh
set -eux
branch=$1
target="$(readlink -f "${2}")"
tmpdir="$(mktemp -d)"
cd "${tmpdir}"
cleanup () {
rm -rf "${tmpdir}"
}
trap cleanup EXIT
mkdir -p $target
bzr branch $branch checkout
for po in checkout/*.po; do
msgfmt "${po}" -o "${target}/$(basename "${po}" .po).mo"
done