revert readlink attempt, needs to support both relative and absolute symlinks, just...
authorFabian Groffen <grobian@gentoo.org>
Tue, 23 Feb 2010 19:06:57 +0000 (19:06 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 23 Feb 2010 19:06:57 +0000 (19:06 -0000)
svn path=/main/branches/prefix/; revision=15444

bin/misc-functions.sh

index 9d34a2403a6f63381d845731f04526bbfde41a66..5aa52f9d2017fd27ae190401871c814c8c42f43a 100644 (file)
@@ -628,11 +628,7 @@ install_qa_check_prefix() {
                # does the shebang start with ${EPREFIX}?
                [[ ${line[0]} == ${EPREFIX}* ]] && continue
                # can we just fix it(tm)?
-               local el=${EPREFIX}${line[0]} edl=${ED}${line[0]}
-               # follow symlinks, e.g. python is a symlink
-               [[ -L ${el} ]] && el=$(readlink "${el}")
-               [[ -L ${edl} ]] && edl=$(readlink "${edl}")
-               if [[ -x ${el} || -x ${edl} ]] ; then
+               if [[ -e ${EPREFIX}${line[0]} || -e ${ED}${line[0]} ]] ; then
                        eqawarn "prefixing shebang of ${fn#${D}}"
                        sed -i -e '1s:^#! \?:#!'"${EPREFIX}"':' "${fn}"
                        continue