tools: mkdir build directories

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2022-11-21 21:05:55 -05:00
parent 3a97b22d57
commit 19b9890db5
No known key found for this signature in database
GPG key ID: ACEB29740C9A4E97
16 changed files with 16 additions and 0 deletions

View file

@ -76,6 +76,7 @@ EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
update_symlinks() {
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/{default,clang,hardened,musl,musl-clang,musl-hardened} ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null || exit
shopt -s extglob
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do

View file

@ -69,6 +69,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -32,6 +32,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/llvm" "${BUILD_SRCDIR_BASE}/builds/musl" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" "${BUILD_SRCDIR_BASE}/builds/musl-llvm"; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -29,6 +29,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f t
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for t in hppa1.1 hppa2.0; do
for f in $(ls stage3-${t}-*bz2 stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do

View file

@ -14,6 +14,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -26,6 +26,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3-ppc-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -26,6 +26,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f t
for d in "${BUILD_SRCDIR_BASE}"/builds/{default,power9le,power9le-mergedusr,musl-hardened,power9le-musl-hardened} ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for t in ppc64le power9le; do
for f in $(ls stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do

View file

@ -21,6 +21,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -26,6 +26,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -24,6 +24,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -55,6 +55,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -42,6 +42,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -21,6 +21,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -21,6 +21,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -16,6 +16,7 @@ update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3-sparc-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)

View file

@ -37,6 +37,7 @@ EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
update_symlinks() {
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/{default,hardened,musl} ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null || exit
shopt -s extglob
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do