File: config-h.sh

package info (click to toggle)
fldigi 4.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,600 kB
  • sloc: cpp: 282,156; ansic: 96,034; sh: 5,275; makefile: 1,152; sed: 16
file content (16 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Check for translation units that don't include config.h

r=0
for f in $fldigi_SOURCES $flarq_SOURCES; do
    base=$(echo $f | sed -n '/\.[cC][cCpPxX]\{1,\}/ { s!.*/\(.*\)\.[^.]*$!\1!p; }')
    test "x$base" = "x" && continue
    test -f "fldigi-${base}.${OBJEXT}" || test -f "flarq-${base}.${OBJEXT}" || continue
    if ! grep "include.*config\.h" "${srcdir}/${f}" >/dev/null; then
        echo "E: $f does not include config.h" >&2
        r=1
    fi
done

exit $r