Mercurial > people > ptisnovs > daily_tests
annotate tck7/clean_all.sh @ 2:09a912dabc95 draft
Added script for cleaning work dirs, report dirs and build dirs.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Wed, 02 Apr 2014 09:55:16 +0200 |
parents | |
children | a9fd0830352b |
rev | line source |
---|---|
2
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
1 #!/usr/bin/bash |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
2 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
3 # Daily test builder. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
4 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Red Hat |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
6 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
7 # This tool is free software; you can redistribute it and/or modify |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
8 # it under the terms of the GNU General Public License as published by |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
9 # the Free Software Foundation; either version 2, or (at your option) |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
10 # any later version. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
11 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
12 # This tool is distributed in the hope that it will be useful, but |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
15 # General Public License for more details. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
16 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
17 # You should have received a copy of the GNU General Public License |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
18 # along with IcedTea; see the file COPYING. If not, write to the |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
20 # 02110-1301 USA. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
21 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
22 # Linking this library statically or dynamically with other modules is |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
23 # making a combined work based on this library. Thus, the terms and |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
24 # conditions of the GNU General Public License cover the whole |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
25 # combination. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
26 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
27 # As a special exception, the copyright holders of this library give you |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
28 # permission to link this library with independent modules to produce an |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
29 # executable, regardless of the license terms of these independent |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
30 # modules, and to copy and distribute the resulting executable under |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
31 # terms of your choice, provided that you also meet, for each linked |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
32 # independent module, the terms and conditions of the license of that |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
33 # module. An independent module is a module which is not derived from |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
34 # or based on this library. If you modify this library, you may extend |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
35 # this exception to your version of the library, but you are not |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
36 # obligated to do so. If you do not wish to do so, delete this |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
37 # exception statement from your version. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
38 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
39 # Clean work dirs, result dirs and build dirs. |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
40 # |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
41 # Author: Pavel Tisnovsky |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
42 # e-mail: ptisnovs@redhat.com |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
43 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
44 echo "Cleaning builds" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
45 rm -rf /jck/daily_tests/builds/Icedtea7_forest |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
46 rm -rf /jck/daily_tests/builds/Icedtea7_forest_2_3 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
47 rm -rf /jck/daily_tests/builds/Icedtea7_forest_2_4 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
48 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
49 echo "Cleaning logs" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
50 rm -rf /jck/daily_tests/logs/* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
51 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
52 echo "Cleaning jtr" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
53 rm -rf /jck/daily_tests/jtr/20* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
54 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
55 echo "Cleaning /jck/log/" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
56 rm -rf /jck/log/* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
57 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
58 echo "Cleaning /jck/logs/" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
59 rm -rf /jck/logs/* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
60 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
61 echo "Cleaning /jck/work/" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
62 rm -rf /jck/work/* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
63 |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
64 echo "Cleaning /jck/results/" |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
65 rm -rf /jck/results/* |
09a912dabc95
Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff
changeset
|
66 |