File: clean-tree.sh

package info (click to toggle)
ns3 3.26%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 117,520 kB
  • ctags: 72,063
  • sloc: cpp: 462,724; python: 364,339; perl: 8,720; ansic: 7,153; xml: 3,401; makefile: 1,981; sh: 628
file content (53 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

#This script is used clean the source tree,after dpkg-buildpackage -rfakeroot 

#COPYRIGHT (C) YunQiang Su <wzssyqa@gmial.com>,2010.

#PUBILIC UNDER GPLv2 or LATER VERSION GPL.

#rm ./*.log

TOP_DIR=`pwd`
NS3_DIR=$TOP_DIR/`ls -d ns-*`
PYBINDGENV_DIR=$TOP_DIR/`ls -d pybindgen-0.*`
DEBIAN_DIR=$TOP_DIR/debian

echo $DEBIAN_DIR

###############################################
#clean top dir
cd $TOP_DIR
rm -f *.pyc *-stamp

################################################
#clean ns3 dir
cd $NS3_DIR

rm -f ./doc/introspected-doxygen.h ./doc/ns3-object.txt \
      ./doc/doxygen.warnings.log ./doc/ns3_html_theme/static/ns3_version.js
rm -rf ./doc/html \
       ./doc/latex

make clean -C ./doc/manual
make clean -C ./doc/tutorial
make clean -C ./doc/models

rm -f ./different.pcap ./*.txt

./waf clean
./waf distclean

./bindings/python/waf clean
./bindings/python/waf distclean

rm -rf ./build-*

find . -name '*.pyc' -exec rm {} \;
find . -name '.waf-*' -exec rm -rf {} \;

cd $PYBINDGENV_DIR
find . -name '*.pyc' -exec rm {} \;
find . -name '.waf-*' -exec rm -rf {} \;

exit 0