FFSM++  1.1.0
French Forest Sector Model ++
clean.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 #---------------------------------------
4 # Shell script to clean the FFSM++ output
5 #---------------------------------------
6 
7 echo Cleaning the FFSM++ output...
8 echo ""
9 
10 # maps...
11 rm -rf maps/asciiGrids/*
12 rm -rf maps/bitmaps/*
13 rm -rf maps/cats/*
14 rm -rf maps/colr/*
15 rm -rf maps/grass/france/default
16 rm -rf maps/floatListLayers/*
17 rm -rf maps/integerListLayers/*
18 rm -rf maps/scenarioNames/*
19 # results...
20 rm -rf results/*.csv
21 # charts..
22 rm -rf charts/*.pdf
23 rm -rf charts/png/*.png
24 # tables..
25 rm -rf tables/*
26 # optimisation logs
27 rm -rf optimisationLogs/*
28 # debugs..
29 rm -rf debugs/*
30 
31 # copy back the do-not-remove warning file..
32 cp 00_doNotRemove.txt maps/asciiGrids/
33 cp 00_doNotRemove.txt maps/bitmaps/
34 cp 00_doNotRemove.txt maps/cats/
35 cp 00_doNotRemove.txt maps/colr/
36 cp 00_doNotRemove.txt maps/floatListLayers/
37 cp 00_doNotRemove.txt maps/integerListLayers/
38 cp 00_doNotRemove.txt maps/scenarioNames/
39 cp 00_doNotRemove.txt charts/
40 cp 00_doNotRemove.txt charts/png/
41 cp 00_doNotRemove.txt tables/
42 cp 00_doNotRemove.txt optimisationLogs/
43 cp 00_doNotRemove.txt debugs/
44 
45 # cp the results ods template
46 cp results_template.ods results/results.ods
47 
48 echo Done cleaning FFSM++ output!
49 echo ""