#!/bin/sh
#  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Lesser General Public
#  License as published by the Free Software Foundation; either
#  version 2.1 of the License.
#
#  This library is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
#
#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#

CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
cd ${CONF_DIR}

TO_CLEAN=
TO_CLEAN=${TO_CLEAN}' build_configure.log'
TO_CLEAN=${TO_CLEAN}' Makefile.am.list'
TO_CLEAN=${TO_CLEAN}' aclocal.m4'
TO_CLEAN=${TO_CLEAN}' autom4te*'
TO_CLEAN=${TO_CLEAN}' configure'
TO_CLEAN=${TO_CLEAN}' configure.in'
TO_CLEAN=${TO_CLEAN}' missing'
TO_CLEAN=${TO_CLEAN}' install-sh'
TO_CLEAN=${TO_CLEAN}' ltmain.sh'
TO_CLEAN=${TO_CLEAN}' config.guess'
TO_CLEAN=${TO_CLEAN}' config.sub'
TO_CLEAN=${TO_CLEAN}' depcomp'
TO_CLEAN=${TO_CLEAN}' yacs_config.h.in'

rm -rf $TO_CLEAN > /dev/null

l=`find . -name "Makefile.in" -or -name "*~"`

if test X"$l" != X ; then
    rm -f $l
fi

find . -name "semantic.cache" -print -exec rm {} \;
find . -name "*.pyc" -print -exec rm {} \;
rm -f src/salomegui_swig/doc.i
