Candidate_v1.7.0
        stable
      
      
      
| Line |   | 
|---|
| 1 | AT_SETUP([Checking for present date stamp in .dox files])
 | 
|---|
| 2 | AT_KEYWORDS([CodeCheck dox date_in_dox])
 | 
|---|
| 3 | ok=""
 | 
|---|
| 4 | echo `pwd`
 | 
|---|
| 5 | echo "${#ok[*]} are ok to not contain date in .dox: ${ok[*]}."
 | 
|---|
| 6 | liste=`find ${abs_top_srcdir}/src -name '*.dox'`
 | 
|---|
| 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 '\date [[0-9]]{4}-[[0-2]][[0-9]]-[[0-3]][[0-9]]' $file], 0, [ignore], [ignore], [echo "Could not find date stamp in $file."])
 | 
|---|
| 23 |   fi
 | 
|---|
| 24 | done
 | 
|---|
| 25 | AT_CLEANUP
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.