-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean_all_builds.sh
34 lines (25 loc) · 979 Bytes
/
clean_all_builds.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
#!/usr/bin/bash
scrfipt_file_name=$(basename "$0")
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
hostname=$(echo $HOSTNAME); echo $hostname
if [[ $hostname =~ "tursa" ]]; then
echo "Found 'tursa' in string."
machine="tursa"
fi
echo $hostname
echo $machine
rm -rf external_lib/ Bench_Grid_HiRep/ Grid-Main/Grid/build/ BKeeper/build/
cd ./Sombrero/SOMBRERO;
make clean;
cd ${script_dir}
echo `pwd`
#-------------------------------------------------------------------------------
#End of the script
echo
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
$cyan; echo `date`; $blue;
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "- $scrfipt_file_name Done. -"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
#exit
#-------------------------------------------------------------------------------