[Clfs-commits] commit: r5021 - /trunk/scripts/fetch/eglibc.sh
svn at cross-lfs.org
svn at cross-lfs.org
Sat Jun 6 11:30:37 PDT 2009
Author: jim
Date: Sat Jun 6 18:30:36 2009
New Revision: 5021
Log:
Updated eglibc retrieve script
Modified:
trunk/scripts/fetch/eglibc.sh
Modified: trunk/scripts/fetch/eglibc.sh
==============================================================================
--- trunk/scripts/fetch/eglibc.sh (original)
+++ trunk/scripts/fetch/eglibc.sh Sat Jun 6 18:30:36 2009
@@ -14,6 +14,10 @@
echo "Example $0 2.19 2.19.1"
exit 255
fi
+
+# Clear out old Directory
+#
+rm -rf ~/tmp
# Get Current Eglibc from SVN
#
@@ -33,6 +37,7 @@
# Remove Files not needed
#
+cd ~/tmp/eglibc-${SOURCEVERSION}
FILE_LIST=".cvsignore"
for files in ${FILE_LIST}; do
REMOVE=$(find * -name ${files})
@@ -43,11 +48,21 @@
# Fix configuration files
#
+cd ~/tmp/eglibc-${SOURCEVERSION}
echo "Updating Glibc configure files..."
find . -name configure -exec touch {} \;
+# Change gcc to BUILD_CC in the following files
+#
+cd ~/tmp/eglibc-${SOURCEVERSION}/libc
+FIX_FILES="sunrpc/Makefile timezone/Makefile"
+for fix_file in ${FIX_FILES}; do
+ sed -i "s/gcc/\'$\(BUILD_CC\)'/g" ${fix_file}
+done
+
# Compress
#
+cd ~/tmp/eglibc-${SOURCEVERSION}
echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...."
tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}.tar.bz2 ports
rm -rf ports
More information about the Clfs-commits
mailing list