Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. ...
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Aug 2007 07:28:03 +0000 (07:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Aug 2007 07:28:03 +0000 (07:28 -0000)
svn path=/main/branches/2.1.2/; revision=7557

bin/ebuild.sh

index 4da75c6569ac1c55ec956d2a464f961a2fa0a141..4a826a4f089f24ee3cefb4c0cb6f7dd134ccfc81 100755 (executable)
@@ -977,6 +977,9 @@ dyn_compile() {
        if [ -d "${S}" ]; then
                srcdir=${S}
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        #our custom version of libtool uses $S and $D to fix
        #invalid paths in .la files
@@ -1035,6 +1038,9 @@ dyn_test() {
        trap "abort_test" SIGINT SIGQUIT
        if [ -d "${S}" ]; then
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        if ! hasq test $FEATURES && [ "${EBUILD_FORCE_TEST}" != "1" ]; then
                vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
@@ -1071,6 +1077,9 @@ dyn_install() {
        mkdir "${PORTAGE_BUILDDIR}/image"
        if [ -d "${S}" ]; then
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        vecho
        vecho ">>> Install ${PF} into ${D} category ${CATEGORY}"