-
Notifications
You must be signed in to change notification settings - Fork 11
/
clean.sh
executable file
·54 lines (51 loc) · 1.22 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
#!/bin/bash
PCBPLACERPATH=./module/SA-PCB
PCBROUTERPATH=./module/PcbRouter
KICADDBPATH=./module/KicadParser
LIBDIR=./ucsdpcb
BUILDDIR=./build
rm -r ${BUILDDIR}/*
rm ${LIBDIR}/*
while [ $# -ne 0 ]
do
arg="$1"
case "$arg" in
placer)
plcr=true
;;
router)
rtr=true
;;
parser)
db=true
;;
*)
all="true"
;;
esac
shift
done
if [ "$plcr" = true ] || [ "$all" = true ]; then
rm ${PCBPLACERPATH}/tmp/*
rm -r ${PCBPLACERPATH}/bin/*
rm -r ${PCBPLACERPATH}/build/*
rm ${PCBPLACERPATH}/src/pcbplacer-stamp/*
rm ${PCBPLACERPATH}/src/PcbPlacer_wrapper.cpp
rm ${PCBPLACERPATH}/src/PcbPlacer.py
fi
if [ "$rtr" = true ] || [ "$all" = true ]; then
rm ${PCBROUTERPATH}/tmp/*
rm -r ${PCBROUTERPATH}/bin/*
rm -r ${PCBROUTERPATH}/build/*
rm ${PCBROUTERPATH}/src/pcbrouter-stamp/*
rm ${PCBROUTERPATH}/src/PcbRouter_wrapper.cpp
rm ${PCBROUTERPATH}/src/PcbRouter.py
fi
if [ "$db" = true ] || [ "$all" = true ]; then
rm ${KICADDBPATH}/tmp/*
rm -r ${KICADDBPATH}/bin/*
rm -r ${KICADDBPATH}/build/*
rm ${KICADDBPATH}/src/kicadparser-stamp/*
rm ${KICADDBPATH}/src/PcbDB_wrapper.cpp
rm ${KICADDBPATH}/src/PcbDB.py
fi