File: parse

package info (click to toggle)
iniparser 4.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: ansic: 2,291; sh: 39; python: 9; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 371 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
#!/bin/sh
set -e

TEMP=${AUTOPKGTEST_TMP:-${TMPDIR:-/tmp}}
TDIR=$(mktemp -d $TEMP/smokeXXXXXX)

# create temporary directory
mkdir -p ${TDIR}

# copy testfiles
cp -a example/parse.c example/twisted.ini ${TDIR}

# change directory to temporary test directory
cd ${TDIR}

# compile parse.c
gcc -I/usr/include/iniparser -o parse parse.c -liniparser

# run the parse
./parse