It is same as cd <directory> ... cd .. But build/install can finish in some internal directory and not exit to top level. So pushd popd always work properly.
ср, 18 июл. 2018 г., 22:10 Germano Massullo <germano.massu...@gmail.com>: > Hi, I need some help in understanding how popd and pushd work in rpm > files creation. > Today I started working on enhancing darktable spec file [1] in order to > add basecurve-tool and noise-tool subpackages, and I had some > difficulties in understanding popd/pushd usage in that spec file. > Despite is a package that I maintain, the popd/pushd usage has been > implemented by past Fedora maintainers. > I have spent the afternoon searching on internet and reading again the > guide https://rpm-packaging-guide.github.io/ > and I also made some practise after having read StackOverflow question > [2], but I still do not get it. > > Thank you for your time > > [1]: > https://src.fedoraproject.org/rpms/darktable/blob/f28/f/darktable.spec > [2]: > > https://unix.stackexchange.com/questions/77077/how-do-i-use-pushd-and-popd-commands > > _______________________________________________ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3JSTVEJP4XASQEWNWFRSG77ABMFEK3EG/ >
_______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/JPTHVV2OPISJKPBQTAHPKZVARXXQIGTF/