add a script to checkout a translations branch

and compile the po files into mo files
impish-sru-lp-1946520
Michael Hudson-Doyle 4 years ago
parent d0e0454547
commit 10288220fc

@ -0,0 +1,22 @@
#!/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

2
debian/control vendored

@ -11,6 +11,7 @@ Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
apt-utils, apt-utils,
attr, attr,
bzr,
debootstrap, debootstrap,
distro-info, distro-info,
dosfstools, dosfstools,
@ -18,6 +19,7 @@ Depends: ${misc:Depends},
gdisk, gdisk,
genisoimage, genisoimage,
germinate (>= 1.25.1), germinate (>= 1.25.1),
gettext,
git, git,
gnupg, gnupg,
grep-dctrl, grep-dctrl,

1
debian/install vendored

@ -4,3 +4,4 @@ get-ppa-fingerprint usr/share/livecd-rootfs
minimize-manual usr/share/livecd-rootfs minimize-manual usr/share/livecd-rootfs
magic-proxy usr/share/livecd-rootfs magic-proxy usr/share/livecd-rootfs
lp-in-release usr/share/livecd-rootfs lp-in-release usr/share/livecd-rootfs
checkout-translations-branch usr/share/livecd-rootfs

Loading…
Cancel
Save