tools: mkdir build directories
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
parent
3a97b22d57
commit
19b9890db5
|
@ -76,6 +76,7 @@ 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}/builds/{default,clang,hardened,musl,musl-clang,musl-hardened} ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/{default,clang,hardened,musl,musl-clang,musl-hardened} ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null || exit
|
pushd "${d}" >/dev/null || exit
|
||||||
shopt -s extglob
|
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
|
||||||
|
|
|
@ -69,6 +69,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
|
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
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -32,6 +32,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
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
|
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
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -29,6 +29,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f t
|
local d f t
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
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 stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-${t}-*bz2 stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
|
|
|
@ -14,6 +14,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -26,6 +26,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3-ppc-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-ppc-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -26,6 +26,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f t
|
local d f t
|
||||||
for d in "${BUILD_SRCDIR_BASE}"/builds/{default,power9le,power9le-mergedusr,musl-hardened,power9le-musl-hardened} ; do
|
for d in "${BUILD_SRCDIR_BASE}"/builds/{default,power9le,power9le-mergedusr,musl-hardened,power9le-musl-hardened} ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for t in ppc64le power9le; do
|
for t in ppc64le power9le; do
|
||||||
for f in $(ls stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
|
|
|
@ -21,6 +21,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -26,6 +26,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -24,6 +24,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -55,6 +55,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -42,6 +42,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -21,6 +21,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -21,6 +21,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -16,6 +16,7 @@ update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for f in $(ls stage3-sparc-*xz | grep -v latest | give_latest_from_dates) ; do
|
for f in $(ls stage3-sparc-*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
local of=$(echo "${f}" | convert_filename)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
|
|
|
@ -37,6 +37,7 @@ 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}/builds/{default,hardened,musl} ; do
|
for d in ${BUILD_SRCDIR_BASE}/builds/{default,hardened,musl} ; do
|
||||||
|
mkdir -p "${d}"
|
||||||
pushd "${d}" >/dev/null || exit
|
pushd "${d}" >/dev/null || exit
|
||||||
shopt -s extglob
|
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
|
||||||
|
|
Loading…
Reference in a new issue