| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | check_for_appscip-shell shell shell-project 0.0.0 check_for_app().() { |
| 4 | $1 --version 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5 | if [scip-shell system . . `[`. $? != 0 ] |
| 6 | then |
| 7 | echoscip-shell system . . 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 | testscip-shell system . . test. -n "$AUTOCONF_VERSION" || export AUTOCONF_VERSION=2.69 |
| 14 | testscip-shell system . . test. -n "$AUTOMAKE_VERSION" || export AUTOMAKE_VERSION=1.16 |
| 15 | |
| 16 | check_for_appscip-shell shell shell-project 0.0.0 check_for_app(). autoconf |
| 17 | check_for_appscip-shell shell shell-project 0.0.0 check_for_app(). autoheader |
| 18 | check_for_appscip-shell shell shell-project 0.0.0 check_for_app(). automake |
| 19 | check_for_appscip-shell shell shell-project 0.0.0 check_for_app(). aclocal |
| 20 | |
| 21 | gen_configurescip-shell shell shell-project 0.0.0 gen_configure().() { |
| 22 | echoscip-shell system . . echo. "Generating the configure script for $1 ..." |
| 23 | shift |
| 24 | |
| 25 | aclocalscip-shell system . . aclocal. -I "$@" |
| 26 | autoconfscip-shell system . . autoconf. |
| 27 | autoheaderscip-shell system . . autoheader. |
| 28 | automakescip-shell system . . automake. --add-missing --copy 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 29 | } |
| 30 | |
| 31 | gen_configurescip-shell shell shell-project 0.0.0 gen_configure(). "Asterisk" autoconf `findscip-shell system . . find. third-party -path '*/*/*' -prune -o -type d -print | xargsscip-shell system . . xargs. -I {} echo -I {}` |
| 32 | cd menuselect |
| 33 | gen_configurescip-shell shell shell-project 0.0.0 gen_configure(). "menuselect" ../autoconf |
| 34 | |
| 35 | exit 0 |