Salome HOME
bug correction : bad repalcement of "template" inside a hxx file
[tools/hxx2salome.git] / root_clean
1 #!/bin/sh
2
3
4 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5 cd ${CONF_DIR}
6
7 if test -e Makefile ; then
8     make clean
9 fi
10
11 # cleaning if compiled inside the source tree
12 TO_CLEAN=
13 TO_CLEAN=${TO_CLEAN}' config.log'
14 TO_CLEAN=${TO_CLEAN}' config.status'
15 TO_CLEAN=${TO_CLEAN}' libtool'
16 rm -rf $TO_CLEAN > /dev/null
17
18 l=`find . -name "Makefile"`
19
20 if test X"$l" != X ; then
21     rm -f $l > /dev/null
22 fi
23
24 l=`find . -name ".deps"`
25
26 if test X"$l" != X ; then
27     rm -rf $l > /dev/null
28 fi
29
30 # cleaning autoconf generated files
31 TO_CLEAN=
32 TO_CLEAN=${TO_CLEAN}' aclocal.m4'
33 TO_CLEAN=${TO_CLEAN}' autom4te*'
34 TO_CLEAN=${TO_CLEAN}' configure'
35 TO_CLEAN=${TO_CLEAN}' configure.in'
36 TO_CLEAN=${TO_CLEAN}' install-sh missing mkinstalldirs'
37 TO_CLEAN=${TO_CLEAN}' py-compile'
38 TO_CLEAN=${TO_CLEAN}' build_configure.log'
39 TO_CLEAN=${TO_CLEAN}' depcomp'
40 TO_CLEAN=${TO_CLEAN}' config.guess config.sub ltmain.sh'
41 TO_CLEAN=${TO_CLEAN}' Makefile.am.list'
42 # TO_CLEAN=${TO_CLEAN}' COPYING INSTALL'
43 rm -rf $TO_CLEAN > /dev/null
44
45 l=`find . -name "Makefile.in"`
46
47 if test X"$l" != X ; then
48     rm -f $l > /dev/null
49 fi
50
51 l=`find . -name "*~"`
52
53 if test X"$l" != X ; then
54     rm -f $l > /dev/null
55 fi