Use pushd/popd instead of repeated `cd X/cd "${S}"` calls in comedilib-9999.ebuild.
authorW. Trevor King <wking@drexel.edu>
Sat, 11 Dec 2010 13:44:42 +0000 (08:44 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 11 Dec 2010 14:03:02 +0000 (09:03 -0500)
commit9b1834f1be4e263e98f19e1c8ff654f3d55b57bd
treeb706ca145948364c1e6e7de8c376b0c1fc623769
parent546481dbb7a5deb379a5033bd130a38cf1b93d13
Use pushd/popd instead of repeated `cd X/cd "${S}"` calls in comedilib-9999.ebuild.

This removes the assumption that the build process was in ${S} at the
beginning of the block.  It also fixes problems with glob expansion as
explained below:

From the Pathname Expansion section of bash(1), pathname expansion
happens after word splitting, and therefore before variable expansion.
A simple example of this is
  tmp $ echo "${PWD}/*"
  /tmp/*
when I had originally expected the same output as
  pushd /tmp/; echo *; popd
  /tmp /tmp
  file1 file2 file3 ...
  /tmp
sci-libs/comedilib/Manifest
sci-libs/comedilib/comedilib-9999.ebuild