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:
parent
984255449b
commit
e243f99edf
18 changed files with 56 additions and 56 deletions
|
@ -29,13 +29,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-${SUBARCH}-*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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue