~ubuntu-branches/ubuntu/intrepid/fontconfig/intrepid

« back to all changes in this revision

Viewing changes to doc/check-missing-doc

  • Committer: Bazaar Package Importer
  • Author(s): Keith Packard
  • Date: 2008-05-31 20:01:57 UTC
  • mto: (0.1.4 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20080531200157-7u3xgmgeh1594flx
ImportĀ upstreamĀ versionĀ 2.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
header=fontconfig-header
 
3
doc=fontconfig-doc
 
4
trap "rm $header $doc"  0 1 15
 
5
top_srcdir=${top_srcdir-".."}
 
6
(
 
7
cat $top_srcdir/fontconfig/*.h  | grep '^Fc' | 
 
8
 grep -v FcPublic | sed 's/[^a-zA-Z0-9].*//';
 
9
 cat $top_srcdir/fontconfig/*.h  | 
 
10
 sed -n 's/#define \(Fc[a-zA-Z]*\)(.*$/\1/p') |
 
11
 sort -u > $header
 
12
 
 
13
grep '@FUNC[+]*@' $top_srcdir/doc/*.fncs |
 
14
awk '{print $2}' |
 
15
sort -u > $doc
 
16
 
 
17
if cmp $doc $header > /dev/null; then
 
18
        exit 0
 
19
fi
 
20
 
 
21
echo \
 
22
'Library Export                                                 Documentation'
 
23
diff -y $header $doc | grep '[<>]'
 
24
exit 1