tools/catalyst-auto-{amd64,x86}.conf: fix update_symlinks globbing
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
parent
59865dd11e
commit
f7891ac366
|
@ -41,12 +41,13 @@ SET_hardened_nomultilib_selinux_SPECS="hardened/stage1-selinux-nomultilib.spec h
|
||||||
|
|
||||||
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/${ARCH}
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/${ARCH}
|
||||||
|
|
||||||
EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]"
|
EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
|
||||||
|
|
||||||
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}" >/dev/null || exit
|
pushd "${d}" >/dev/null || exit
|
||||||
|
shopt -s extglob
|
||||||
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
|
||||||
# 20yymmddThhmmssZ
|
# 20yymmddThhmmssZ
|
||||||
# 20yymmddhhmmss
|
# 20yymmddhhmmss
|
||||||
|
|
|
@ -28,12 +28,13 @@ SET_hardened_OPTIONAL_SPECS="hardened/admincd-stage1.spec hardened/admincd-stage
|
||||||
|
|
||||||
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/${ARCH}
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/${ARCH}
|
||||||
|
|
||||||
EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]"
|
EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
|
||||||
|
|
||||||
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}" >/dev/null || exit
|
pushd "${d}" >/dev/null || exit
|
||||||
|
shopt -s extglob
|
||||||
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
|
||||||
# 20yymmddThhmmssZ
|
# 20yymmddThhmmssZ
|
||||||
# 20yymmddhhmmss
|
# 20yymmddhhmmss
|
||||||
|
|
Loading…
Reference in a new issue