-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.sh
executable file
·47 lines (33 loc) · 1.41 KB
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
# For copyright and license terms, see LICENSE.txt (top level of repository)
# Repository: https://github.com/timegrid/debian-image-builder
#
#% Usage: ./clean.sh
#%
#% Cleans all artifacts (except caches/buildlogs) for a complete rebuild
set -eu
# Project
scriptDir="$(dirname "$(readlink -vf "$0")")"
source "$scriptDir/.project.sh" \
--confirm -- "$@"
debuerreotypeDir="$debuerreotypeDir"
debootstrapDir="$debootstrapDir"
aptcacherngDir="$aptcacherngDir"
dockerDir="$dockerDir"
libvirtDir="$libvirtDir"
#------------------------------------------------------------------------------
#%% Run libvirt clean script
#------------------------------------------------------------------------------
"$libvirtDir"/clean.sh --yes
#------------------------------------------------------------------------------
#%% Run docker clean script
#------------------------------------------------------------------------------
"$dockerDir"/clean.sh --yes
#------------------------------------------------------------------------------
#%% Run debuerreotype clean script
#------------------------------------------------------------------------------
"$debuerreotypeDir"/clean.sh --yes
#------------------------------------------------------------------------------
#%% Run debootstrap clean script
#------------------------------------------------------------------------------
"$debootstrapDir"/clean.sh --yes