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

275 by Steve Langasek
start of a script to automate cleaning up data files from obsolete releases
1
#!/bin/sh
2
set -e
3
4
# Automate the task of cleaning up files related to a release once it's
5
# EOL.
6
7
DIST="$1"
8
9
if [ -z "$DIST" ]; then
10
	echo "Usage: $0 DIST"
11
	exit 1
12
fi
13
14
BASEDIR=/home/ubuntu-archive
15
rm -rfv "$BASEDIR"/proposed-migration/data/"$DIST" \
16
	"$BASEDIR"/proposed-migration/data/"$DIST"-proposed \
17
	"$BASEDIR"/proposed-migration/output/"$DIST" \
18
	"$BASEDIR"/public_html/germinate-output/*."$DIST" \
19
	"$BASEDIR"/public_html/proposed-migration/"$DIST" \
20
	"$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst_full.txt \
277 by Steve Langasek
Moar clean
21
	"$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst.txt \
22
	"$BASEDIR"/public_html/proposed-migration/update_output/"$DIST"