chiark / gitweb /
magrathea wip
[autopkgtest.git] / hosts / cadmium / cleanup
1 #!/bin/sh
2 set -e
3 cd /home/iwj/public_html/autopkgtest-output
4
5 #rmvia=true
6
7 find *                                  \
8         -maxdepth 2                     \
9         -mindepth 2                     \
10         \(                              \
11                    -name src            \
12                 -o -name tmp.\*         \
13                 -o -type d              \
14                 -o -size +100k          \
15         \)                              \
16         -mtime +3                       \
17         -print0                         \
18  | xargs -tr0 $rmvia rm -rf --
19
20 find *                                  \
21         -maxdepth 1                     \
22         -mindepth 1                     \
23         -type d                         \
24         -mtime +100                     \
25         -print0                         \
26  | xargs -tr0 $rmvia rm -rf --
27