File: find_public_interface.sh

package info (click to toggle)
cvc4 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 69,876 kB
  • sloc: cpp: 274,686; sh: 5,833; python: 1,893; java: 929; lisp: 763; ansic: 275; perl: 214; makefile: 22; awk: 2
file content (20 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# Enumerates public interface headers, so that public-only documentation
# can be produced.
#

cd "$(dirname "$0")"

echo -n "\"$srcdir/src/include/cvc4.h\" "
echo -n "\"$srcdir/src/include/cvc4_public.h\" "
( (find "$builddir" -name '*.h' | xargs grep -l '^# *include  *"cvc4.*_public\.h"'); \
  (find "$srcdir" -name '*.h' | xargs grep -l '^# *include  *"cvc4.*_public\.h"'); \
) | \
while read f; do
  if expr "$f" : ".*_\(template\|private\|test_utils\)\.h$" &>/dev/null; then
    continue
  fi
  echo -n "\"$f\" "
done