source: trunk/bin/search.sh @ 2859

Last change on this file since 2859 was 2859, checked in by bradbell, 7 years ago

merge in changes from branches/atomic; see bin/svn_merge.sh

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#! /bin/bash -e
2# $Id: search.sh 2859 2013-05-28 06:03:21Z bradbell $
3# -----------------------------------------------------------------------------
4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
5#
6# CppAD is distributed under multiple licenses. This distribution is under
7# the terms of the
8#                     Eclipse Public License Version 1.0.
9#
10# A copy of this license is included in the COPYING file of this distribution.
11# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
12# -----------------------------------------------------------------------------
13if [ ! -e "bin/search.sh" ]
14then
15        echo "bin/search.sh: must be executed from its parent directory"
16        exit 1
17fi
18if [ "$1" == "" ]
19then
20        echo 'usage: bin/search.sh pattern'
21        echo '       Search for pattern in the cppad source code'
22        exit 1
23fi
24pattern="$1"
25extensions='.ac .am .c .cmake .cpp .h .hpp .in .omh .pc .py .sed .sh .txt'
26directories='
27        .
28        bin
29        cppad
30        cppad/cmake
31        cppad/example
32        cppad/ipopt
33        cppad/local
34        cppad/speed
35        cppad_ipopt/example
36        cppad_ipopt/speed
37        cppad_ipopt/src
38        cppad_ipopt/test
39        example
40        example/atomic
41        example/ipopt_solve
42        introduction/exp_apx
43        introduction/get_started
44        multi_thread
45        multi_thread/bthread
46        multi_thread/openmp
47        multi_thread/pthread
48        omh
49        omh/deprecated
50        omh/whats_new
51        pkgconfig
52        print_for
53        speed
54        speed/adolc
55        speed/cppad
56        speed/double
57        speed/example
58        speed/fadbad
59        speed/profile
60        speed/sacado
61        speed/src
62        test_more
63'
64#
65find_files.sh "$pattern" "$extensions" "$directories" | \
66         sed -e '/\/makefile.in/d'
Note: See TracBrowser for help on using the repository browser.