File: chkuserdone.ksh

package info (click to toggle)
cdftools 4.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,948 kB
  • sloc: f90: 43,175; makefile: 457; sh: 96; ada: 22
file content (33 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/ksh

#   $Rev$
#   $Date$
# suppose that we run this script in $CDFTOOLS/DOC
CDFTOOLS=../

grep subsection cdftools_user.tex | grep -v addcontent | grep underline | sed -e 's@\\subsection\*{\\underline{@@'  -e 's/:}}//' \
        -e 's/\\//g' | sort > list_man
here=$(pwd)
cd $CDFTOOLS
ls -1 *90 | sed -e 's/.f90//' | sort > $here/list_prog
cd $here

n=01
for f in $( cat list_prog ); do
  grep -q $f list_man
  if [ $? == 1 ] ; then
    printf "\n %02d  %s \t %s \n " $n $f 'missing in manual'
    n=$(( n + 1 ))
  fi
done
    printf "\n"

for f in $( cat list_man ); do
  grep -q $f list_prog
  if [ $? == 1 ] ; then
    printf "%s \t %s \n \n" $f 'missing in CDFTOOLS ??'
  fi
done

\rm -f list_prog list_man