summaryrefslogtreecommitdiff
path: root/scripts/build/libc/eglibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-09-22 19:51:29 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-09-22 19:51:29 (GMT)
commit8935b104210453fc0160377808a9ca657d6c9212 (patch)
tree63d4748b712408871a150d72c0217ee039fd7e07 /scripts/build/libc/eglibc.sh
parent2d87a3583118c410fdd3a2fd2acfb281ec15537a (diff)
Rework the eglibc download so as to be a little bit saner.
/trunk/scripts/build/libc/eglibc.sh | 25 15 10 0 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-)
Diffstat (limited to 'scripts/build/libc/eglibc.sh')
-rw-r--r--scripts/build/libc/eglibc.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh
index 6b6e718..29e2719 100644
--- a/scripts/build/libc/eglibc.sh
+++ b/scripts/build/libc/eglibc.sh
@@ -19,9 +19,6 @@ do_eglibc_get() {
*) svn_url="svn://svn.eglibc.org/branches/eglibc-${CT_LIBC_VERSION}";;
esac
- CT_MktempDir tmp_dir
- CT_Pushd "${tmp_dir}"
-
case "${CT_EGLIBC_CHECKOUT}" in
y) svn_action="checkout";;
*) svn_action="export --force";;
@@ -32,18 +29,13 @@ do_eglibc_get() {
# Compress eglibc
CT_DoExecLog ALL mv libc "${CT_LIBC_FILE}"
- CT_DoExecLog ALL tar cjf "${CT_TARBALLS_DIR}/${CT_LIBC_FILE}.tar.bz2" "${CT_LIBC_FILE}"
+ CT_DoExecLog ALL tar cjf "${CT_LIBC_FILE}.tar.bz2" "${CT_LIBC_FILE}"
# Compress linuxthreads, localedef and ports
# Assign them the name the way ct-ng like it
for addon in linuxthreads localedef ports; do
- CT_DoExecLog ALL tar cjf "${CT_TARBALLS_DIR}/${CT_LIBC}-${addon}-${CT_LIBC_VERSION}.tar.bz2" "${addon}"
+ CT_DoExecLog ALL tar cjf "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}.tar.bz2" "${addon}"
done
-
- CT_Popd
-
- # Remove source files
- CT_DoExecLog ALL rm -rf "${tmp_dir}"
}
# Download glibc
@@ -81,7 +73,20 @@ do_libc_get() {
# Not found locally, try from the network
CT_DoLog EXTRA "Retrieving 'eglibc-${CT_LIBC_VERSION}'"
+
+ CT_MktempDir tmp_dir
+ CT_Pushd "${tmp_dir}"
+
do_eglibc_get
+ CT_DoLog DEBUG "Moving 'eglibc-${CT_LIBC_VERSION}' to tarball directory"
+ for file in ${eglibc} ${eglibc_linuxthreads} ${eglibc_localedef} ${eglibc_ports}; do
+ CT_DoExecLog ALL mv -f "${file}" "${CT_TARBALLS_DIR}"
+ done
+
+ CT_Popd
+
+ # Remove source files
+ CT_DoExecLog ALL rm -rf "${tmp_dir}"
if [ "${CT_SAVE_TARBALLS}" = "y" ]; then
CT_DoLog EXTRA "Saving 'eglibc-${CT_LIBC_VERSION}' to local storage"