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

« back to all changes in this revision

Viewing changes to update-sync-blacklist

  • Committer: Colin Watson
  • Date: 2012-11-12 00:26:03 UTC
  • Revision ID: cjwatson@canonical.com-20121112002603-bl2onw9r55idcm42
update-sync-blacklist: new script (from <= May)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
set -e
 
3
 
 
4
BRANCH="$HOME/sync-blacklist"
 
5
SOURCE="$BRANCH/sync-blacklist.txt"
 
6
DESTINATION="$HOME/public_html/sync-blacklist.txt"
 
7
 
 
8
bzr pull -q --overwrite -d "$BRANCH"
 
9
cp -a "$SOURCE" "$DESTINATION.new"
 
10
mv "$DESTINATION.new" "$DESTINATION"