]> git.ipfire.org Git - people/ms/suricata.git/blame - scripts/check-setup.sh
check-setup: fix script names for .sh to .py
[people/ms/suricata.git] / scripts / check-setup.sh
CommitLineData
40a1a972
JI
1#! /bin/sh
2
3set -e
4
5# Create temp. directory and copy in sources.
6tmpdir=$(mktemp -d)
7trap "rm -rf ${tmpdir}" EXIT
8
9(cd .. && tar cf - $(git ls-files)) | (cd ${tmpdir} && tar xf -)
10
11if [ -e ../libhtp ]; then
12 (cd ../libhtp && git archive --format=tar --prefix=libhtp/ HEAD) | \
13 (cd ${tmpdir} && tar xvf -)
14else
15 echo "error: this script required bundled libhtp..."
16 exit 1
17fi
18
19cd ${tmpdir}
20
21# Do initial build.
22./autogen.sh
23./configure
24
c1238af3 25./scripts/setup-app-layer.py --parser Echo
40a1a972 26
c1238af3 27./scripts/setup-app-layer.py --detect Echo request
40a1a972 28
c1238af3 29./scripts/setup-app-layer.py --logger Echo
40a1a972
JI
30
31./scripts/setup-decoder.sh Udplite
32
33./scripts/setup-simple-detect.sh simpledetect
34
35make distcheck
36