Debian Codegraph @

bootstrap.sh

raw symbols SCIP
1 #!/bin/sh
2
3 check_for_app() {
4 $1 --version 2>&1 >/dev/null
5 if [ $? != 0 ]
6 then
7 echo "Please install $1 and run bootstrap.sh again!"
8 exit 1
9 fi
10 }
11
12 # OpenBSD: pkg_add autoconf%2.69 automake%1.16 metaauto
13 test -n "$AUTOCONF_VERSION" || export AUTOCONF_VERSION=2.69
14 test -n "$AUTOMAKE_VERSION" || export AUTOMAKE_VERSION=1.16
15
16 check_for_app autoconf
17 check_for_app autoheader
18 check_for_app automake
19 check_for_app aclocal
20
21 gen_configure() {
22 echo "Generating the configure script for $1 ..."
23 shift
24
25 aclocal -I "$@"
26 autoconf
27 autoheader
28 automake --add-missing --copy 2>/dev/null
29 }
30
31 gen_configure "Asterisk" autoconf `find third-party -path '*/*/*' -prune -o -type d -print | xargs -I {} echo -I {}`
32 cd menuselect
33 gen_configure "menuselect" ../autoconf
34
35 exit 0