File: bootstrap.sh

package info (click to toggle)
tcpflow 1.5.2%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,428 kB
  • sloc: cpp: 18,481; python: 8,737; sh: 1,343; xml: 1,118; makefile: 392; ansic: 367
file content (45 lines) | stat: -rwxr-xr-x 1,096 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Hopefully you checked out with:
# $ git clone --recursive https://github.com/simsong/tcpflow.git

# Make sure we have automake installed
function usage() {
  echo tcpflow bootstrap:
  echo be sure that these packages are installed:
  echo automake autoconf gcc gcc-c++ boost-devel openssl-devel libpcap-devel cairo-devel
  exit 1
}

automake --help 1>/dev/null 2>&1 || usage

for sub in be13_api dfxml http-parser
do
  if [ ! -r src/$sub/.git ] ;
  then
    echo bringing in submodules
    echo next time check out with git clone --recursive
    git submodule init
    git submodule update
  fi
done

## The new way:
# have automake do an initial population iff necessary
if [ ! -e config.guess -o ! -e config.sub -o ! -e install-sh -o ! -e missing -o ! -e test-driver ]; then
    /bin/rm -rf aclocal.m4
    autoheader -f
    aclocal -I m4
    autoconf -f
    automake --add-missing --copy
else
    autoreconf -f
fi
echo be sure to run ./configure
## The old way:

# /bin/rm -rf aclocal.m4
# autoheader -f
# aclocal -I m4
# autoconf -f
# automake --add-missing --copy
# ./configure