OILS / deps / source.medo / yash / WEDGE View on Github | oilshell.org

40 lines, 29 significant
1# Wedge definition for yash
2#
3# Loaded by deps/wedge.sh.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9# sourced
10WEDGE_NAME='yash'
11WEDGE_VERSION='2.49'
12
13wedge-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
26wedge-install() {
27 local build_dir=$1
28
29 pushd $build_dir
30
31 time make install
32
33 popd
34}
35
36wedge-smoke-test() {
37 local install_dir=$1
38
39 $install_dir/bin/yash -c 'echo "hi from yash"'
40}