mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 17:26:41 +00:00
Fix saving and using local copy of eglibc tarballs.
/trunk/scripts/build/libc_eglibc.sh | 10 5 5 0 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
This commit is contained in:
parent
f1b9a7e7bb
commit
70e05067fa
@ -74,20 +74,20 @@ do_libc_get() {
|
||||
[ "${CT_FORCE_DOWNLOAD}" != "y" ]; then
|
||||
CT_DoLog EXTRA "Got 'eglibc-${CT_LIBC_VERSION}' from local storage"
|
||||
for file in ${eglibc} ${eglibc_linuxthreads} ${eglibc_localedef} ${eglibc_ports}; do
|
||||
CT_DoExecLog ALL ln -s "${CT_LOCAL_TARBALLS_DIR}/${file}" "${file}"
|
||||
CT_DoExecLog ALL ln -s "${CT_LOCAL_TARBALLS_DIR}/${file}" "${CT_TARBALLS_DIR}/${file}"
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Not found locally, try from the network
|
||||
CT_DoLog EXTRA "Retrieving eglibc from network"
|
||||
CT_DoLog EXTRA "Retrieving 'eglibc-${CT_LIBC_VERSION}'"
|
||||
do_eglibc_get
|
||||
|
||||
if [ "${CT_SAVE_TARBALLS}" = "y" ]; then
|
||||
CT_DoLog EXTRA "Saving eglibc files to local storage"
|
||||
CT_DoLog EXTRA "Saving 'eglibc-${CT_LIBC_VERSION}' to local storage"
|
||||
for file in ${eglibc} ${eglibc_linuxthreads} ${eglibc_localedef} ${eglibc_ports}; do
|
||||
CT_DoExecLog ALL mv -f "${file}" "${CT_LOCAL_TARBALLS_DIR}"
|
||||
CT_DoExecLog ALL ln -s "${CT_LOCAL_TARBALLS_DIR}/${file}" "${file}"
|
||||
CT_DoExecLog ALL mv -f "${CT_TARBALLS_DIR}/${file}" "${CT_LOCAL_TARBALLS_DIR}"
|
||||
CT_DoExecLog ALL ln -s "${CT_LOCAL_TARBALLS_DIR}/${file}" "${CT_TARBALLS_DIR}/${file}"
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user