3
# this is part of langpack-o-matic
5
# (C) 2005 Canonical Ltd.
6
# Author: Martin Pitt <martin.pitt@canonical.com>
8
# Build update packages for the release given as first argument; stable-updates
9
# will be uploaded to PPA, devel release will be uploaded straight into the
13
[ -n "$release" ] || {
14
echo "Usage: $0 <release>" >&2
22
if test -s updated-packages; then
23
echo "updated-packages is nonzero, please clean up first" >&2
27
TAR=ubuntu-${release%-*}-translations-update.tar.gz
29
wget --no-check-certificate -q -O $TAR https://translations.launchpad.net/ubuntu/${release%-*}/+latest-delta-language-pack
31
echo "Could not download $TAR" >&2
35
mkdir -p ../logs ../${release/updates/proposed}
36
./import --update --treshold=5 -v $TAR ${release/updates/proposed} ../${release/updates/proposed} > ../logs/$release.log 2>&1
38
if [ "${release%-updates}" = "$release" ]; then
39
# development release, upload straight to archive
42
# stable releases, upload to PPA
46
./packages upload $target > ../logs/$release-upload.log 2>&1