Merge lp:~vorlon/ubuntu-archive-scripts/clean-eol-series into lp:ubuntu-archive-scripts

Proposed by Steve Langasek
Status: Merged
Merged at revision: 277
Proposed branch: lp:~vorlon/ubuntu-archive-scripts/clean-eol-series
Merge into: lp:ubuntu-archive-scripts
Diff against target: 26 lines (+22/-0)
1 file modified
clean-eol-series (+22/-0)
To merge this branch: bzr merge lp:~vorlon/ubuntu-archive-scripts/clean-eol-series
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+382045@code.launchpad.net
To post a comment you must log in.
277. By Steve Langasek

Moar clean

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'clean-eol-series'
2--- clean-eol-series 1970-01-01 00:00:00 +0000
3+++ clean-eol-series 2020-04-10 00:57:10 +0000
4@@ -0,0 +1,22 @@
5+#!/bin/sh
6+set -e
7+
8+# Automate the task of cleaning up files related to a release once it's
9+# EOL.
10+
11+DIST="$1"
12+
13+if [ -z "$DIST" ]; then
14+ echo "Usage: $0 DIST"
15+ exit 1
16+fi
17+
18+BASEDIR=/home/ubuntu-archive
19+rm -rfv "$BASEDIR"/proposed-migration/data/"$DIST" \
20+ "$BASEDIR"/proposed-migration/data/"$DIST"-proposed \
21+ "$BASEDIR"/proposed-migration/output/"$DIST" \
22+ "$BASEDIR"/public_html/germinate-output/*."$DIST" \
23+ "$BASEDIR"/public_html/proposed-migration/"$DIST" \
24+ "$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst_full.txt \
25+ "$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst.txt \
26+ "$BASEDIR"/public_html/proposed-migration/update_output/"$DIST"

Subscribers

People subscribed via source and target branches