1 | # Wedge definition for dash
|
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='dash'
|
11 | WEDGE_VERSION='0.5.10.2'
|
12 | #WEDGE_IS_ABSOLUTE=1 # TODO: try relaxing
|
13 |
|
14 | wedge-make() {
|
15 | local src_dir=$1
|
16 | local build_dir=$2
|
17 | local install_dir=$3
|
18 |
|
19 | time $src_dir/configure --prefix=$install_dir
|
20 |
|
21 | time make
|
22 | # make test?
|
23 | }
|
24 |
|
25 | wedge-install() {
|
26 | local build_dir=$1
|
27 |
|
28 | pushd $build_dir
|
29 |
|
30 | time make install-strip
|
31 |
|
32 | popd
|
33 | }
|
34 |
|
35 | wedge-smoke-test() {
|
36 | local install_dir=$1
|
37 |
|
38 | $install_dir/bin/dash -c 'echo "hi from dash"'
|
39 | }
|