blob: fd1e037adbdb9017706c7c5d59b3e3bcbc0e11db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
set -eu
. tools/lib.sh
D="$(mkdtemp)"
R="$(mkdtemp)"
trap 'rm -rf "$D" "$R"' EXIT
cp -pR ./ "$R"
cd "$R"
{
PATH="$D/usr/bin:$PATH"
NODE_PATH="$D/usr/lib/node:$NODE_PATH"
make -s DESTDIR="$D" install
printf '%s: that the papo(3js) library is installed correctly...' \
"$(yellow "$0")"
node -e 'require("papo");'
printf ' %s\n' "$(green 'OK')"
printf '%s: that the papo(1) command is installed correctly...' \
"$(yellow "$0")"
papo -V | grep -q '^papo '
printf ' %s\n' "$(green 'OK')"
} >&2
|