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

39 lines, 28 significant
1# Wedge definition for bash
2#
3# Loaded by deps/wedge.sh.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9# sourced
10WEDGE_NAME='bash'
11WEDGE_VERSION='4.4'
12
13wedge-make() {
14 local src_dir=$1
15 local build_dir=$2
16 local install_dir=$3
17
18 # --without-bash-malloc for Alpine only -- musl libc incompatibility?
19 # https://patchwork.ozlabs.org/project/buildroot/patch/20170523171931.18744-1-dsabogalcc@gmail.com/
20 time $src_dir/configure --without-bash-malloc --prefix=$install_dir
21
22 time make
23}
24
25wedge-install() {
26 local build_dir=$1
27
28 pushd $build_dir
29
30 time make install
31
32 popd
33}
34
35wedge-smoke-test() {
36 local install_dir=$1
37
38 $install_dir/bin/bash -c 'echo "hi from bash"'
39}