blob: 2e1a5a54a9f147bd332203959a81b0e4a4cb456c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#/usr/bin/env sh
set -e
make="make -C $lz4_root"
$make CFLAGS=-O0 > /dev/null
for cmd in install uninstall; do
for upper in DUMMY PREFIX EXEC_PREFIX LIBDIR INCLUDEDIR PKGCONFIGDIR BINDIR MANDIR MAN1DIR ; do
lower=$(echo $upper | tr '[:upper:]' '[:lower:]')
tmp_lower="$(pwd)/tmp-lower-$lower/"
tmp_upper="$(pwd)/tmp-upper-$lower/"
echo $make $cmd DESTDIR="$tmp_upper" $upper="test"
$make $cmd DESTDIR="$tmp_upper" $upper="test" >/dev/null
echo $make $cmd DESTDIR="$tmp_lower" $lower="test"
$make $cmd DESTDIR="$tmp_lower" $lower="test" >/dev/null
command diff -r "$tmp_lower" "$tmp_upper" && echo "SAME!" || false
if [ "x$cmd" = "xuninstall" ]; then
test -z "$(find "$tmp_lower" -type f)" && echo "EMPTY!" || false
rm -rf "$tmp_upper" "$tmp_lower"
fi
done
done
|