-
Notifications
You must be signed in to change notification settings - Fork 6
/
clean.sh
executable file
·97 lines (76 loc) · 1.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
# Configuration script. Clean the project
# S.Chekanov. ANL
CURRENT_DIR=`pwd`
echo "Clear the installation.."
export PROMC=$CURRENT_DIR
export LD_LIBRARY_PATH=$PROMC/share/lib:$LD_LIBRARY_PATH
export PATH=$PROMC/bin:$PATH
rm -f *~
rm -f */*~
rm -f */*/*~
rm -f setup.sh
rm -rf share/lib
rm -rf share/bin
cd $CURRENT_DIR/libzip
echo "Clean $CURRENT_DIR/libzip"
make clean
make distclean
rm -f *.log
rm -f */*.log
cd $CURRENT_DIR/protobuf
echo "Clean $CURRENT_DIR/protobuf"
make clean
make distclean
rm -f *.log
rm -f */*.log
cd $CURRENT_DIR/protobuf/gtest
make clean
make distclean
cd $CURRENT_DIR/protobuf/python
setup.py clean
echo "Clean $CURRENT_DIR/cbook"
cd $CURRENT_DIR/cbook
make clean
rm -f */*.o
rm -f */*/*.o
rm -f version.h
rm -f qftitle.inc
if [ -d "$CURRENT_DIR/cbook/libzip" ]; then
rm -rf $CURRENT_DIR/cbook/libzip
fi
rm -rf $CURRENT_DIR/cbook/share
# rm -f config.mk
cd $CURRENT_DIR/examples/reader_mc
make clean
cd $CURRENT_DIR/examples/reader_nlo
make clean
cd $CURRENT_DIR/examples/promc2root
make clean
cd $CURRENT_DIR/examples/root
make clean
cd $CURRENT_DIR/examples/hepmc2promc
make clean
cd $CURRENT_DIR/examples/random
make clean
rm -rf python src java proto
cd $CURRENT_DIR/examples/stdhep2promc
make clean
cd $CURRENT_DIR
# remove duplicate
rm -rf java/build
rm -rf java/dist
rm -rf java/doc/*
rm -f java/lib/promc-protobuf-tmp.jar
# some cleanups
rm -f */*~
rm -f */*/*~
rm -f src/ProMC*
rm -f src/promc/*
rm -f src/pronlo/*
rm -f src/proreco/*
rm -f inc/ProMC*
rm -f examples/cpp/out/*
rm -f examples/browser/lib/browser_promc_tmp.jar
rm -f examples/root/out/*
rm -f *~