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
|
@ -29,13 +29,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,24 +51,24 @@ give_latest_from_dates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
pushd ${REPO_DIR}
|
pushd ${REPO_DIR} >/dev/null
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 20YYMMDD stuff
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for 20YYMMDD stuff
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
pushd ${BUILD_SRCDIR_BASE}/default
|
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
||||||
|
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
mkdir -p ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
|
@ -79,9 +79,9 @@ post_build() {
|
||||||
if [ -f *${DATESTAMP}*.iso ]; then
|
if [ -f *${DATESTAMP}*.iso ]; then
|
||||||
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}/${TYPE}/${ARCH}/default/${DATESTAMP}
|
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}/${TYPE}/${ARCH}/default/${DATESTAMP}
|
||||||
fi
|
fi
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
pushd ${BUILD_SRCDIR_BASE}/hardened
|
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
||||||
|
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/hardened/${DATESTAMP}
|
mkdir -p ${BUILD_DESTDIR_BASE}/hardened/${DATESTAMP}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
|
|
|
@ -62,25 +62,25 @@ give_latest_from_dates() {
|
||||||
update_symlinks() {
|
update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 20YYMMDD stuff
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for 20YYMMDD stuff
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
pushd ${REPO_DIR}
|
pushd ${REPO_DIR} >/dev/null
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd >/dev/null
|
||||||
update_symlinks
|
update_symlinks
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
pushd ${BUILD_SRCDIR_BASE}/default
|
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}
|
mkdir -p ${BUILD_DESTDIR_BASE}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
@ -90,9 +90,9 @@ post_build() {
|
||||||
if [ -f *${DATESTAMP}*.iso ]; then
|
if [ -f *${DATESTAMP}*.iso ]; then
|
||||||
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}
|
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}
|
||||||
fi
|
fi
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
pushd ${BUILD_SRCDIR_BASE}/hardened
|
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/hardened
|
mkdir -p ${BUILD_DESTDIR_BASE}/hardened
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for t in hppa1.1 hppa2.0; do
|
for t in hppa1.1 hppa2.0; do
|
||||||
for f in $(ls stage3-${t}-*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3-${t}-*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
||||||
|
@ -42,7 +42,7 @@ pre_build() {
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,13 +30,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for t in ppc64-64ul ppc64-32ul; do
|
for t in ppc64-64ul ppc64-32ul; do
|
||||||
for f in $(ls stage3-${t}-*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3-${t}-*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
||||||
|
@ -40,7 +40,7 @@ pre_build() {
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
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
|
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=${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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ pre_build() {
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/{default,multilib} ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/{default,multilib} ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 $
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,24 +38,24 @@ give_latest_from_dates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
pushd ${REPO_DIR}
|
pushd ${REPO_DIR} >/dev/null
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 20YYMMDD stuff
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for 20YYMMDD stuff
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
pushd ${BUILD_SRCDIR_BASE}/default
|
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
||||||
|
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
mkdir -p ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
|
@ -67,9 +67,9 @@ post_build() {
|
||||||
if [ -f *${DATESTAMP}*.iso ]; then
|
if [ -f *${DATESTAMP}*.iso ]; then
|
||||||
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}/default/${DATESTAMP}
|
||||||
fi
|
fi
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
pushd ${BUILD_SRCDIR_BASE}/hardened
|
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
||||||
|
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/hardened/${DATESTAMP}
|
mkdir -p ${BUILD_DESTDIR_BASE}/hardened/${DATESTAMP}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
|
|
|
@ -38,24 +38,24 @@ give_latest_from_dates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
pushd ${REPO_DIR}
|
pushd ${REPO_DIR} >/dev/null
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||||
pushd $d
|
pushd $d >/dev/null
|
||||||
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
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 20YYMMDD stuff
|
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for 20YYMMDD stuff
|
||||||
ln -sf $f $of
|
ln -sf $f $of
|
||||||
done
|
done
|
||||||
popd
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
pushd ${BUILD_SRCDIR_BASE}/default
|
pushd ${BUILD_SRCDIR_BASE}/default >/dev/null
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}
|
mkdir -p ${BUILD_DESTDIR_BASE}
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
@ -65,9 +65,9 @@ post_build() {
|
||||||
if [ -f *${DATESTAMP}*.iso ]; then
|
if [ -f *${DATESTAMP}*.iso ]; then
|
||||||
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}
|
cp *${DATESTAMP}*.iso* ${BUILD_DESTDIR_BASE}
|
||||||
fi
|
fi
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
pushd ${BUILD_SRCDIR_BASE}/hardened
|
pushd ${BUILD_SRCDIR_BASE}/hardened >/dev/null
|
||||||
mkdir -p ${BUILD_DESTDIR_BASE}/hardened
|
mkdir -p ${BUILD_DESTDIR_BASE}/hardened
|
||||||
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
for file in $(ls stage{3,4}*${DATESTAMP}*${EXTENSIONS} ); do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
|
Loading…
Reference in a new issue