kumquat-buildroot/package/pseudo/pseudo-wrapper
Peter Korsgaard 0f496d77db Revert "package/pseudo: provide better legacy handling for fakeroot"
This reverts commit 499f28fc7c.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-11-27 20:34:49 +01:00

13 lines
280 B
Bash

#!/bin/sh
export PSEUDO_PREFIX="$(dirname "${0%/*}")"
export PSEUDO_OPTS="-t0"
if [ -n "${TARGET_DIR}" ]; then
export PSEUDO_PASSWD="${TARGET_DIR}"
fi
if [ -n "${BASE_DIR}" ]; then
export PSEUDO_LOCALSTATEDIR="${BASE_DIR}/build/.pseudodb"
fi
exec "${0%-wrapper}" "${@}"