| Rev | Line |   | 
|---|
| [a965b2] | 1 | AT_SETUP([Checking for present project disclaimer])
 | 
|---|
 | 2 | AT_KEYWORDS([CodeCheck disclaimer])
 | 
|---|
 | 3 | ok=""
 | 
|---|
 | 4 | echo `pwd`
 | 
|---|
 | 5 | echo "${#ok[*]} are ok to not contain config.h: ${ok[*]}."
 | 
|---|
 | 6 | liste=`find ${abs_top_srcdir}/src -name '*.cpp'`
 | 
|---|
 | 7 | for file in $liste
 | 
|---|
 | 8 | do
 | 
|---|
 | 9 |   # check whether its one of the excluded ones
 | 
|---|
 | 10 |   found=0
 | 
|---|
 | 11 |   for item in $ok
 | 
|---|
 | 12 |   do
 | 
|---|
 | 13 |     if test "$item" == "`basename $file`"
 | 
|---|
 | 14 |     then
 | 
|---|
 | 15 |       found=1
 | 
|---|
 | 16 |       break
 | 
|---|
 | 17 |     fi
 | 
|---|
 | 18 |   done
 | 
|---|
 | 19 |   # if not, check whether it contains the include
 | 
|---|
 | 20 |   if test $found -eq 0
 | 
|---|
 | 21 |   then
 | 
|---|
 | 22 |     AT_CHECK([egrep -q " * Project: MoleCuilder" $file], 0, [ignore], [ignore], [echo "Could not find project disclaimer in $file."])
 | 
|---|
| [26249f] | 23 |     AT_CHECK([egrep -q " * Copyright.* University of Bonn" $file], 0, [ignore], [ignore], [
 | 
|---|
 | 24 |         AT_CHECK([egrep -q " * Copyright.* Frederik Heber" $file], 0, [ignore], [ignore], [echo "Could not find copyright with current year ${year} in $file."])])
 | 
|---|
| [a965b2] | 25 |   fi
 | 
|---|
 | 26 | done
 | 
|---|
 | 27 | AT_CLEANUP
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.