File: cxref-cpp.wrap

package info (click to toggle)
cxref 1.6e-9
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 3,332 kB
  • sloc: ansic: 16,598; yacc: 2,091; sh: 945; lex: 470; perl: 452; makefile: 439; lisp: 256; cpp: 188; python: 80
file content (37 lines) | stat: -rw-r--r-- 773 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

set -e

DEF=/etc/cxref/cxref-cpp.defines
#TMP=`tempfile -p cxref -m 600`
TMP=`mktemp cxref.XXXXXXXXXX`

(
#    LC_ALL=C
#    export LC_ALL
    /usr/bin/cxref-cpp-configure -o "$TMP"
)

. /etc/cxref/config

CCD=""
CCDF=""

if ! cmp -s "$DEF" "$TMP" ; then

        echo "Warning: cxref-cpp needs to be reconfigured against your latest gcc/cpp" >&2
        echo "   Please run 'dpkg-reconfigure cxref' as root." >&2

        if [ "$AUTOCONF" = "true" ] ; then
            #
            # Assumes that only the *last* -cxref-cpp-defines is taken into account
            # by cxref-cpp.upstream
            #
            CCD=-cxref-cpp-defines 
            CCDF=$TMP
        else
            exit 1
        fi
fi

exec /usr/bin/cxref-cpp.upstream "$@" "$CCD $CCDF"