1 | # Wedge definition for yash
|
2 | #
|
3 | # Loaded by deps/wedge.sh.
|
4 |
|
5 | set -o nounset
|
6 | set -o pipefail
|
7 | set -o errexit
|
8 |
|
9 | # sourced
|
10 | WEDGE_NAME='yash'
|
11 | WEDGE_VERSION='2.49'
|
12 |
|
13 | wedge-make() {
|
14 | local src_dir=$1
|
15 | local build_dir=$2
|
16 | local install_dir=$3
|
17 |
|
18 | # 9/2021: from VirtualBox VM
|
19 | # The terminfo (curses) library is unavailable!
|
20 | # Add the "--disable-lineedit" option and try again.
|
21 | time $src_dir/configure --disable-lineedit --prefix=$install_dir
|
22 |
|
23 | time make
|
24 | }
|
25 |
|
26 | wedge-install() {
|
27 | local build_dir=$1
|
28 |
|
29 | pushd $build_dir
|
30 |
|
31 | time make install
|
32 |
|
33 | popd
|
34 | }
|
35 |
|
36 | wedge-smoke-test() {
|
37 | local install_dir=$1
|
38 |
|
39 | $install_dir/bin/yash -c 'echo "hi from yash"'
|
40 | }
|