source: scripts/fetch/eglibc.sh@ fa0711b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fa0711b was fa0711b, checked in by Jim Gifford <clfs@…>, 15 years ago

Removed BUILD_CC from eglibc fetch script

  • Property mode set to 100755
File size: 2.1 KB
Line 
1#!/bin/bash
2# Create a Eglibc Tarball
3
4# Get Version #
5#
6VERSION=$1
7SOURCEVERSION=$2
8
9# Check Input
10#
11if [ "${VERSION}" = "" -o "${SOURCEVERSION}" = "" ]; then
12 echo "$0 - Eglibc_Version"
13 echo "This will Create a Tarball for Eglibc Eglibc_Series Eglibc_Version"
14 echo "Example $0 2.19 2.19.1"
15 exit 255
16fi
17
18# Clear out old Directory
19#
20rm -rf ~/tmp
21
22# Get Current Eglibc from SVN
23#
24install -d ~/tmp
25cd ~/tmp
26FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g')
27echo "Retreiving from SVN eglibc-${SOURCEVERSION}..."
28svn export svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION}
29
30# Customize the version string, so we know it's patched
31#
32cd ~/tmp/eglibc-${SOURCEVERSION}
33DATE_STAMP=$(date +%Y%m%d)
34echo "#define DL_DATE \"${DATE_STAMP}\"" >> libc/version.h
35sed -i "s@Compiled by GNU CC version@Built for Cross-LFS.\\\\n\\\\\nRetrieved on \"DL_DATE\".\\\\n\\\\\\nCompiled by GNU CC version@" libc/csu/version.c
36sed -i "s@static const char __libc_release@static const char __libc_dl_date[] = DL_DATE;\nstatic const char __libc_release@" libc/csu/version.c
37
38# Remove Files not needed
39#
40cd ~/tmp/eglibc-${SOURCEVERSION}
41FILE_LIST=".cvsignore"
42for files in ${FILE_LIST}; do
43 REMOVE=$(find * -name ${files})
44 for file in $REMOVE; do
45 rm -f ${file}
46 done
47done
48
49# Fix configuration files
50#
51cd ~/tmp/eglibc-${SOURCEVERSION}
52echo "Updating Glibc configure files..."
53find . -name configure -exec touch {} \;
54
55# Compress
56#
57cd ~/tmp/eglibc-${SOURCEVERSION}
58echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...."
59tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}.tar.bz2 ports
60rm -rf ports
61echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...."
62tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}.tar.bz2 linuxthreads
63rm -rf linuxthreads
64echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...."
65tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}.tar.bz2 localedef
66rm -rf localedef
67mv libc eglibc-${SOURCEVERSION}
68echo "Creating Tarball for Eglibc ${SOURCEVERSION}...."
69tar cjf ~/public_html/eglibc-${SOURCEVERSION}.tar.bz2 eglibc-${SOURCEVERSION}
70
71# Clean up Directores
72#
73cd ~/tmp
74rm -rf eglibc-${SOURCEVERSION}
75
Note: See TracBrowser for help on using the repository browser.