Changeset a689767 for scripts


Ignore:
Timestamp:
Jun 6, 2009, 12:31:18 PM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
b39617b
Parents:
fa0711b
Message:

Updated eglibc fetch script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/fetch/eglibc.sh

    rfa0711b ra689767  
    2525cd ~/tmp
    2626FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g')
    27 echo "Retreiving from SVN eglibc-${SOURCEVERSION}..."
    28 svn export svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION}
     27DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep -i "Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g')
     28echo "Retreiving Revision #${DL_REVISION} from SVN eglibc-${SOURCEVERSION}..."
     29svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION}
    2930
    3031# Customize the version string, so we know it's patched
    3132#
    3233cd ~/tmp/eglibc-${SOURCEVERSION}
    33 DATE_STAMP=$(date +%Y%m%d)
    34 echo "#define DL_DATE \"${DATE_STAMP}\"" >> libc/version.h
     34DL_DATE=$(date +%Y%m%d)
     35echo "#define DL_DATE \"${DL_DATE}\"" >> libc/version.h
     36echo "#define DL_REVISION \"${DL_REVISION}\"" >> libc/version.h
    3537sed -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
     38sed -i "s@Compiled by GNU CC version@Revision # \"DL_REVISION\".\\\\n\\\\\\nCompiled by GNU CC version@" libc/csu/version.c
    3639sed -i "s@static const char __libc_release@static const char __libc_dl_date[] = DL_DATE;\nstatic const char __libc_release@" libc/csu/version.c
     40sed -i "s@static const char __libc_release@static const char __libc_dl_revision[] = DL_REVISION;\nstatic const char __libc_release@" libc/csu/version.c
    3741
    3842# Remove Files not needed
     
    5761cd ~/tmp/eglibc-${SOURCEVERSION}
    5862echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...."
    59 tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}.tar.bz2 ports
     63tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports
    6064rm -rf ports
    6165echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...."
    62 tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}.tar.bz2 linuxthreads
     66tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads
    6367rm -rf linuxthreads
    6468echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...."
    65 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}.tar.bz2 localedef
     69tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef
    6670rm -rf localedef
    6771mv libc eglibc-${SOURCEVERSION}
    6872echo "Creating Tarball for Eglibc ${SOURCEVERSION}...."
    69 tar cjf ~/public_html/eglibc-${SOURCEVERSION}.tar.bz2 eglibc-${SOURCEVERSION}
     73tar cjf ~/public_html/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION}
    7074
    7175# Clean up Directores
Note: See TracChangeset for help on using the changeset viewer.