source: trunk/bin/check_svn_id.sh @ 2720

Last change on this file since 2720 was 2720, checked in by bradbell, 7 years ago
  1. Fix check of numerical limits by making it harder for compiler to include

gaurd digits during calculations.

  1. Fix missing object expected by library that was not being used.

check_svn_id.sh: ignore temp.*.
package.sh: ignore temp.sh.
CMakeLists.txt: remove unecessary includes and library.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1#! /bin/bash -e
2# $Id: check_svn_id.sh 2720 2013-01-06 01:27:22Z 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/check_svn_id.sh" ]
14then
15        echo "bin/check_svn_id.sh: must be executed from its parent directory"
16        exit 1
17fi
18# -----------------------------------------------------------------------------
19echo "Checking for \$Id:.*\$ in beginning of source code"
20echo "-------------------------------------------------------" 
21ok="yes"
22for ext in .hpp .cpp .omh .sh .in
23do
24        dir_list=`find . -name "*$ext" | sed \
25                -e '/\/junk$/d' \
26                -e '/\/junk\./d' \
27                -e '/\/temp$/d' \
28                -e '/\/temp\./d' \
29                -e 's|^\./||' \
30                -e 's/^[^/]*$/./' \
31                -e '/^work\//d' \
32                -e '/^build\//d' \
33                -e '/svn_dist\//d' \
34                -e 's|/[^/]*$||' \
35                | sort -u` 
36        for dir in $dir_list 
37        do
38                list=`ls $dir/*$ext | sed \
39                        -e '/\/config.h.in/d' \
40                        -e '/\/makefile\.in/d' \
41                        -e '/\/junk$/d' \
42                        -e '/\/junk\./d' \
43                        -e '/\/temp$/d' \
44                        -e '/\/temp\./d'`
45                for file in $list
46                do
47                        if ! head -2 $file | grep '$Id:.*\$' > /dev/null
48                        then
49                                echo "$file does not have '\$Id:.*\$' in first two lines"
50                                ok="no"
51                        fi
52                done
53        done
54done
55echo "-------------------------------------------------------" 
56if [ "$ok" = "no" ]
57then
58        echo "Error: nothing should be between the two dashed lines above"
59        exit 1
60else
61        echo "Ok: nothing is between the two dashed lines above"
62        exit 0
63fi
Note: See TracBrowser for help on using the repository browser.