]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: do not use pushd
authorRoy Li <rongqing.li@windriver.com>
Tue, 24 Sep 2013 09:23:55 +0000 (17:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Sep 2013 16:46:27 +0000 (17:46 +0100)
pushd is not available when system is using dash as default shell

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl-ptest.inc

index caa2b61c9bea818c3a87fd21e95818817a52fefe..15afe2dab485d3c891a9cc2b20973c3818a02a5e 100644 (file)
@@ -21,11 +21,11 @@ do_install_ptest () {
        # Tweaks to make tests pass
        cp -pv lib/unicore/TestProp.pl ${D}${libdir}/perl/${PV}/unicore/
        # Put all *.t files from the lib dir in the ptest package
-       pushd lib
+       cd lib
        for file in `find -name \*.t`; do
            tar -cf - $file | ( cd ${D}${libdir}/perl/${PV} && tar -xf - )
        done
-       popd
+       cd ..
 
        mkdir -p ${D}${libdir}/perl/${PV}/XS
        cp -pv lib/XS/APItest.pm ${D}${libdir}/perl/${PV}/XS/