2 # Copyright (C) 2006-2008 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author : Erwan ADAM (CEA)
24 # Usage : rfind dir suffix ...
26 # find all files *suffix in dir in a recursive way
27 # different of the usual command find ...
30 if test $# != 2 ; then
31 echo "Usage : $0 dir suffix"
36 # if the first argument is not a directory, returns
37 if test ! -d $1 ; then
38 # echo "$1 is not a directory"
41 # dont look in the CVS directories
42 # dont look in the autom4te* directories
45 */autom4te*) return ;;
50 # for each regular file contained in the directory
51 # test if it's a *"$2" file
61 # for each subdirectory of the first argument, proceeds recursively