Candidate_v1.7.0
        stable
      
      
      
| Line |  | 
|---|
| 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: JobMarket" $file], 0, [ignore], [ignore], [echo "Could not find project disclaimer in $file."]) | 
|---|
| 23 | AT_CHECK([egrep -q " * Copyright.* Frederik Heber" $file], 0, [ignore], [ignore], [echo "Could not find copyright in $file."]) | 
|---|
| 24 | fi | 
|---|
| 25 | done | 
|---|
| 26 | AT_CLEANUP | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.