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

83 by Colin Watson
update-sync-blacklist: new script (from <= May)
1
#! /bin/sh
2
set -e
3
355.1.1 by Sebastien Bacher
Update for the new sync-blocklist git repository
4
BRANCH="$HOME/sync-blocklist"
5
SOURCE="$BRANCH/sync-blocklist.txt"
6
DESTINATION="$HOME/public_html/sync-blocklist.txt"
83 by Colin Watson
update-sync-blacklist: new script (from <= May)
7
355.1.1 by Sebastien Bacher
Update for the new sync-blocklist git repository
8
git -C "$BRANCH" pull -q
83 by Colin Watson
update-sync-blacklist: new script (from <= May)
9
cp -a "$SOURCE" "$DESTINATION.new"
10
mv "$DESTINATION.new" "$DESTINATION"