File: upstream-example

package info (click to toggle)
librscode 1.3-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 192 kB
  • sloc: ansic: 477; makefile: 98; sh: 5
file content (11 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Compile and run upstream's example program. Assumes $AUTOPKGTEST_TMP is set,
# see /usr/share/doc/autopkgtest/README.package-tests.gz
set -e

# Copy the example program to $AUTOPKGTEST_TMP and work from there.
cp example.c "$AUTOPKGTEST_TMP"/
cd "$AUTOPKGTEST_TMP"

gcc -o example example.c -lrscode
./example