~ubuntu-langpack/langpack-o-matic/main

« back to all changes in this revision

Viewing changes to build-upload

  • Committer: martin at piware
  • Date: 2006-03-31 16:41:18 UTC
  • Revision ID: martin@piware.de-20060331164118-52f2fc52123bd727
state for breezy final

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
# this is part of langpack-o-matic, by Martin Pitt <martin.pitt@canonical.com>
 
4
#
 
5
# (C) 2005 Canonical Ltd.
 
6
#
 
7
# Build and upload all packages in "updated-packages". Generated source
 
8
# tar.gz/dsc/changes files are deleted after successful upload and their entry
 
9
# is removed from "updated-packages".
 
10
 
 
11
cd $(dirname $0)
 
12
 
 
13
[ -f updated-packages ] || exit 0
 
14
 
 
15
for i in $(< updated-packages); do
 
16
    pushd $i >/dev/null
 
17
    debuild -S
 
18
 
 
19
    cd ..
 
20
    f=$(basename $i)
 
21
    dput ${f}_*_source.changes
 
22
    rm -f ${f}_*_source.changes ${f}_*_source.build ${f}_*_source.upload ${f}_*.dsc ${f}_*.tar.gz
 
23
 
 
24
    popd >/dev/null
 
25
 
 
26
    # this seems to be overly complicated, but it allows us to run this script
 
27
    # again if dput fails for a single package
 
28
    sed -i -e "s#$i##" -e '/^$/d'  updated-packages
 
29
done
 
30