|
|
@ -3,7 +3,8 @@
|
|
|
|
set -eux
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
|
|
|
|
branch=$1
|
|
|
|
branch=$1
|
|
|
|
target="$(readlink -f "${2}")"
|
|
|
|
dir=$2
|
|
|
|
|
|
|
|
target="$(readlink -f "${3}")"
|
|
|
|
|
|
|
|
|
|
|
|
tmpdir="$(mktemp -d)"
|
|
|
|
tmpdir="$(mktemp -d)"
|
|
|
|
cd "${tmpdir}"
|
|
|
|
cd "${tmpdir}"
|
|
|
@ -16,7 +17,7 @@ trap cleanup EXIT
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $target
|
|
|
|
mkdir -p $target
|
|
|
|
|
|
|
|
|
|
|
|
bzr branch $branch checkout
|
|
|
|
git clone $branch checkout
|
|
|
|
for po in checkout/*.po; do
|
|
|
|
for po in checkout/$dir/*.po; do
|
|
|
|
msgfmt "${po}" -o "${target}/$(basename "${po}" .po).mo"
|
|
|
|
msgfmt "${po}" -o "${target}/$(basename "${po}" .po).mo"
|
|
|
|
done
|
|
|
|
done
|
|
|
|