~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to run-phased-updater

  • Committer: Colin Watson
  • Date: 2012-11-12 00:20:43 UTC
  • Revision ID: cjwatson@canonical.com-20121112002043-3p9kc79j4cunoct2
process-component-mismatches-diff: remove unused imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
set -e
3
 
 
4
 
case :$PATH: in
5
 
    *:$HOME/ubuntu-archive-tools:*)
6
 
        ;;
7
 
    *)
8
 
        PATH="$HOME/ubuntu-archive-tools:$PATH"
9
 
        ;;
10
 
esac
11
 
 
12
 
OVERRIDES_DIR="$HOME/phased-update-overrides"
13
 
 
14
 
if [ ! -d "$OVERRIDES_DIR" ]; then
15
 
        bzr checkout -q lp:~ubuntu-sru/+junk/phased-update-overrides "$OVERRIDES_DIR"
16
 
else
17
 
        bzr update -q "$OVERRIDES_DIR"
18
 
fi
19
 
cd "$OVERRIDES_DIR"
20
 
 
21
 
phased-updater -e
22
 
 
23
 
OUT="$HOME/public_html/phased-updates.html"
24
 
cp -a phased-updates.html "$OUT.new"
25
 
mv "$OUT.new" "$OUT"
26
 
 
27
 
exit 0