-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathclean
executable file
·66 lines (57 loc) · 939 Bytes
/
clean
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
function check_okay {
if [ $? -ne 0 ]
then
exit 1
fi
}
function do_one {
cd $1
check_okay
echo " $1"
./clean
check_okay
cd ..
}
function clean_directory {
cd $1
check_okay
echo " $1"
rm -f *
check_okay
cd ..
}
function clean_data_caches {
dir="data/$1"
echo " $dir"
cd $dir
check_okay
rm -f cache/*
check_okay
cd ../..
}
echo
echo "cleaning dStar packages..."
do_one exceptions
do_one constants
do_one superfluid
do_one nucchem
do_one neutrino
do_one dStar_eos
do_one conductivity
do_one dStar_atm
do_one dStar_crust
do_one NScool
do_one MRcurve
echo "cleaning include, lib, data directories..."
clean_directory include
clean_directory lib
echo "cleaning out data caches"
clean_data_caches Tc_data
clean_data_caches nucchem
clean_data_caches eos
clean_data_caches atm_data
clean_data_caches crust_data
clean_data_caches conductivity
#clean_data_caches core_data
echo