[Clfs-commits] commit: r4947 - in /trunk/scripts/fetch: eglibc.sh glibc.sh

svn at cross-lfs.org svn at cross-lfs.org
Sat May 23 09:41:06 PDT 2009


Author: jim
Date: Sat May 23 16:41:06 2009
New Revision: 4947

Log:
Fixed bug in glibc script and added eglibc script

Added:
    trunk/scripts/fetch/eglibc.sh   (with props)
Modified:
    trunk/scripts/fetch/glibc.sh

Modified: trunk/scripts/fetch/glibc.sh
==============================================================================
--- trunk/scripts/fetch/glibc.sh (original)
+++ trunk/scripts/fetch/glibc.sh Sat May 23 16:41:06 2009
@@ -59,9 +59,9 @@
 
 # Add a custom version string
 DATE_STAMP=$(date +%Y%m%d)
-GLIBC_VERSION=$(cat version.h | grep VERSION | cut -f3 -d' ' | sed -e 's/"//g')
-sed -i "s@\(^#define VERSION \).*@\1\"${GLIBC_VERSION}.${DATE_STAMP}\"@" version.h
-sed -i "s at Copyright@Built for Cross-LFS\\\\n\\\\\nCopyright@" csu/version.c
+echo "#define DL_DATE \"${DATE_STAMP}\"" >> libc/version.h
+sed -i "s at Compiled by GNU CC version at Built for Cross-LFS.\\\\n\\\\\nRetrieved on \"DL_DATE\".\\\\n\\\\\\nCompiled by GNU CC version@" libc/csu/version.c
+sed -i "s at static const char __libc_release at static const char __libc_dl_date[] = DL_DATE;\nstatic const char __libc_release@" libc/csu/version.c
 
 # Create tarballs
 echo "Creating Tarballs"




More information about the Clfs-commits mailing list