check-setup.sh 695 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env bash
  2. set -e
  3. # Create temp. directory and copy in sources.
  4. tmpdir=$(mktemp -d)
  5. trap "rm -rf ${tmpdir}" EXIT
  6. (cd .. && tar cf - $(git ls-files)) | (cd ${tmpdir} && tar xf -)
  7. if [ -e ../libhtp ]; then
  8. (cd ../libhtp && git archive --format=tar --prefix=libhtp/ HEAD) | \
  9. (cd ${tmpdir} && tar xvf -)
  10. else
  11. echo "error: this script required bundled libhtp..."
  12. exit 1
  13. fi
  14. cd ${tmpdir}
  15. # Do initial build.
  16. ./autogen.sh
  17. ./configure
  18. ./scripts/setup-app-layer.py --parser Echo
  19. ./scripts/setup-app-layer.py --detect Echo request
  20. ./scripts/setup-app-layer.py --logger Echo
  21. ./scripts/setup-decoder.sh Udplite
  22. ./scripts/setup-simple-detect.sh simpledetect
  23. make distcheck