Changeset a689767 for scripts/fetch
- Timestamp:
- Jun 6, 2009, 12:31:18 PM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- b39617b
- Parents:
- fa0711b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/fetch/eglibc.sh
rfa0711b ra689767 25 25 cd ~/tmp 26 26 FIXEDVERSION=$(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} 27 DL_REVISION=$(svn info svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} | grep -i "Last Changed Rev" | cut -f2 -d: | sed -e 's/ //g') 28 echo "Retreiving Revision #${DL_REVISION} from SVN eglibc-${SOURCEVERSION}..." 29 svn export -r ${DL_REVISION} svn://svn.eglibc.org/branches/eglibc-${FIXEDVERSION} eglibc-${SOURCEVERSION} 29 30 30 31 # Customize the version string, so we know it's patched 31 32 # 32 33 cd ~/tmp/eglibc-${SOURCEVERSION} 33 DATE_STAMP=$(date +%Y%m%d) 34 echo "#define DL_DATE \"${DATE_STAMP}\"" >> libc/version.h 34 DL_DATE=$(date +%Y%m%d) 35 echo "#define DL_DATE \"${DL_DATE}\"" >> libc/version.h 36 echo "#define DL_REVISION \"${DL_REVISION}\"" >> libc/version.h 35 37 sed -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 38 sed -i "s@Compiled by GNU CC version@Revision # \"DL_REVISION\".\\\\n\\\\\\nCompiled by GNU CC version@" libc/csu/version.c 36 39 sed -i "s@static const char __libc_release@static const char __libc_dl_date[] = DL_DATE;\nstatic const char __libc_release@" libc/csu/version.c 40 sed -i "s@static const char __libc_release@static const char __libc_dl_revision[] = DL_REVISION;\nstatic const char __libc_release@" libc/csu/version.c 37 41 38 42 # Remove Files not needed … … 57 61 cd ~/tmp/eglibc-${SOURCEVERSION} 58 62 echo "Creating Tarball for Eglibc Ports ${SOURCEVERSION}...." 59 tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION} .tar.bz2 ports63 tar cjf ~/public_html/eglibc-ports-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 ports 60 64 rm -rf ports 61 65 echo "Creating Tarball for Eglibc Linuxthreads ${SOURCEVERSION}...." 62 tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION} .tar.bz2 linuxthreads66 tar cjf ~/public_html/eglibc-linuxthreads-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 linuxthreads 63 67 rm -rf linuxthreads 64 68 echo "Creating Tarball for Eglibc LocaleDef ${SOURCEVERSION}...." 65 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION} .tar.bz2 localedef69 tar cjf ~/public_html/eglibc-localedef-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 localedef 66 70 rm -rf localedef 67 71 mv libc eglibc-${SOURCEVERSION} 68 72 echo "Creating Tarball for Eglibc ${SOURCEVERSION}...." 69 tar cjf ~/public_html/eglibc-${SOURCEVERSION} .tar.bz2 eglibc-${SOURCEVERSION}73 tar cjf ~/public_html/eglibc-${SOURCEVERSION}-${DL_DATE}-r${DL_REVISION}.tar.bz2 eglibc-${SOURCEVERSION} 70 74 71 75 # Clean up Directores
Note:
See TracChangeset
for help on using the changeset viewer.