File: upstream-example

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

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

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