source: trunk/bin/search.sh @ 2939

Last change on this file since 2939 was 2939, checked in by bradbell, 7 years ago
  1. Make sure all '# defines' have an '# undef' and vise-verser.
  2. Add adolc tests to jenkins.sh.

check_define.sh: New reoutine that check defines have matching undef.
package.sh: run check_define.sh.
search.sh: add missing source directory to search.
configure.hpp.in: fix bug in speed tests (name of preprocessor macro).
pow.hpp: fix comment.
thread_alloc.hpp: fix spelling in comment.
jenkins.sh: Automatically set LD_LIBRARY_PATH.
base_adolc.hpp: fix problem when using ADOL-C-2.4.1
adolc_prefix.omh: add link to get_adolc.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 2939 2013-10-14 11:06:18Z 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/install
51        omh/whats_new
52        pkgconfig
53        print_for
54        speed
55        speed/adolc
56        speed/cppad
57        speed/double
58        speed/example
59        speed/fadbad
60        speed/profile
61        speed/sacado
62        speed/src
63        test_more
64'
65#
66find_files.sh "$pattern" "$extensions" "$directories" | \
67         sed -e '/\/makefile.in/d'
Note: See TracBrowser for help on using the repository browser.