autogen.sh 371 Bytes
Newer Older
1
#!/bin/sh
2

3
if command -v autoreconf; then
4
  opt="-i -f -W all,error"
5

6
  for i in "$@"; do
7
8
    case "$i" in
      -v)
9
        opt="${opt} -v"
10
11
12
13
        ;;
    esac
  done

14
  # shellcheck disable=SC2086
15
  exec autoreconf $opt
16
17
fi

18
19
set -e

20
# Run this to generate all the initial makefiles, etc.
21
aclocal -I m4 && \
22
23
24
	autoheader && \
	autoconf && \
	automake --add-missing --copy