#!/bin/sh set -e DIR1=$(mktemp -d /tmp/in-tree.XXXXXX) DIR2=$(mktemp -d /tmp/out-of-tree.XXXXXX) ./configure --with-install-prefix="$DIR1" --with-manpage-format=normal make install.man [ -d build ] || mkdir build cd build ../configure --with-install-prefix="$DIR2" --with-manpage-format=normal make install.man diff -qr "$DIR1" "$DIR2" # rm -rf "$DIR1" "$DIR2"