app-editors/joe: Fixed eautoreconf with USE="xterm".
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 7 Sep 2016 12:43:02 +0000 (14:43 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 7 Sep 2016 12:43:14 +0000 (14:43 +0200)
Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-editors/joe/joe-4.3-r1.ebuild

index 446ac94c11d8cf8b5fa386142e801e3e2976563b..170a0d727bd8dc83d90e081abf265811eeb798ec 100644 (file)
@@ -27,11 +27,12 @@ src_prepare() {
        default
        # Enable xterm mouse support in the rc files
        if use xterm; then
-               cd "${S}"/rc || die
+               pushd "${S}"/rc &>/dev/null || die
                local i
                for i in *rc*.in; do
                        sed -e 's/^ -\(mouse\|joexterm\)/-\1/' -i "${i}" || die
                done
+               popd &>/dev/null
        fi
        eautoreconf
 }