File: can-link

package info (click to toggle)
libbtbb 2018.12.R1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 1,852 kB
  • sloc: ansic: 20,088; python: 922; sh: 186; makefile: 128; ruby: 21
file content (25 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > btbbtest.c
#include <btbb.h>

int main()
{
    return 0;
}
EOF

pkg-config --cflags --libs libbtbb

gcc -o btbbtest btbbtest.c `pkg-config --cflags --libs libbtbb`
echo "build: OK"
[ -x btbbtest ]
# > /dev/null because it writes this: full talloc report on 'sccp' (total      1 bytes in   1 blocks)
./btbbtest
echo "run: OK"