catalyst-auto: squelch all pushd/popd

Have some sed magic, including a negative match.

git grep -l -e pushd -e popd \
| xargs sed -i -r \
  -e '/(pushd|popd)/{ /null/! { s,$, >/dev/null,g } }'

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2016-06-14 18:29:20 -07:00
parent 984255449b
commit e243f99edf
No known key found for this signature in database
GPG key ID: 19395F23C58826C4
18 changed files with 56 additions and 56 deletions

View file

@ -30,13 +30,13 @@ pre_build() {
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
pushd $d
pushd $d >/dev/null
for f in $(ls stage3-ppc-*bz2 | grep -v latest | give_latest_from_dates ) ; do
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
ln -sf $f $of
done
popd
popd >/dev/null
done
}