-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-clean
executable file
·59 lines (43 loc) · 1.19 KB
/
docker-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
#!/bin/bash
# Script to clean up WRF and WPS directories to remove
# all source and built files, leaving only executables
# and required libraries, data files, etc.
WRF_BUILD="/wrf"
# Start with WRF
cd $WRF_BUILD/WRFV3
rm -f README* Makefile clean compile configure configure.wrf
rm -rf Registry arch dyn_em dyn_exp dyn_nmm external frame \
hydro inc phys share test tools
cd $WRF_BUILD/WRFV3/main
rm -f *.F *.f90 *.o *.mod *.a *.c Makefile depend.common
echo
cd $WRF_BUILD/WRFV3
echo "Contents of WRFV3: "
echo
ls -l $WRF_BUILD/WRFV3/*/*
echo
# Now clean WPS
cd $WRF_BUILD/WPS
rm -f README clean compile configure configure.wps
rm -f namelist.wps.global namelist.wps.nmm namelist.wps.all_options \
namelist.wps.fire
rm -rf arch util
cd $WRF_BUILD/WPS/geogrid
rm -f Makefile
rm -rf util
cd $WRF_BUILD/WPS/geogrid/src
rm -f *.F *.f90 *.o *.mod *.a *.c Makefile
cd $WRF_BUILD/WPS/ungrib
rm -f Makefile README_LIBS
cd $WRF_BUILD/WPS/ungrib/src
rm -f *.F *.f90 *.o *.mod *.a *.c Makefile
rm -rf ngl
cd $WRF_BUILD/WPS/metgrid
rm -f Makefile
cd $WRF_BUILD/WPS/metgrid/src
rm -f *.F *.f90 *.o *.mod *.a *.c Makefile
cd $WRF_BUILD/WPS
echo "Contents of WPS: "
echo
ls -l $WRF_BUILD/WPS/*/*
echo