+2006-07-31 Paul Varner <fuzzyray@gentoo.org>
+ * euse: Replace calls to readlink with bash function for Gentoo/ALT
+ compatibility. (Bugs #140477, #128960)
+
2006-07-28 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Fix revdep-rebuild to correctly handle --ask being
passed to emerge. Thanks to Sal Gonzalez <ghostx@optonline.net> for
exit 1
}
+get_real_path() {
+ set -P
+ cd "$1"
+ pwd
+ cd $OLDPWD
+ set +P
+}
+
check_sanity() {
# file permission tests
local descdir
local parent
local rvalue
- curdir="$(readlink -f ${MAKE_PROFILE_PATH})"
+ curdir="$(get_real_path ${MAKE_PROFILE_PATH})"
while [ -f "${curdir}/parent" ]; do
[ -f "${curdir}/make.defaults" ] && rvalue="${curdir}/make.defaults ${rvalue}"
parent="$(egrep -v '(^#|^ *$)' ${curdir}/parent)"
- curdir="$(readlink -f ${curdir}/${parent})"
+ curdir="$(get_real_path ${curdir}/${parent})"
done
echo "${rvalue}"
local curdir
local parent
- curdir="$(readlink -f ${MAKE_PROFILE_PATH})"
+ curdir="$(get_real_path ${MAKE_PROFILE_PATH})"
while [ ! -f "${curdir}/make.defaults" -a -f "${curdir}/parent" ]; do
parent="$(egrep -v '(^#|^ *$)' ${curdir}/parent)"
- curdir="$(readlink -f ${curdir}/${parent})"
+ curdir="$(get_real_path ${curdir}/${parent})"
done
echo "${curdir}/make.defaults"