Changeset 29f6db3 for scripts/fetch


Ignore:
Timestamp:
Aug 15, 2009, 11:36:56 AM (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:
4648865
Parents:
842cd58
Message:

Added PPC patch. Fixed Patch Fetching Scripts.

Location:
scripts/fetch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/fetch/binutils.sh

    r842cd58 r29f6db3  
    3333#
    3434cd ~/tmp
    35 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    36 PATCH_NUM=$(cat index.html | grep binutils | grep "${VERSION}" | grep fixes | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
    37 PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     35wget http://svn.cross-lfs.org/svn/repos/patches/binutils/ --no-remove-listing
     36for num in $(seq 1 99); do
     37  PATCH_NUM=$(cat index.html | grep "${VERSION}" | grep fixes-${num} | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     38  if [ "${PATCH_NUM}" = "0" -a "${num}" = "1" ]; then
     39    PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     40    break
     41  fi
     42  if [ "${PATCH_NUM}" != "${num}" ]; then
     43    PATCH_NUM=$(expr ${num})
     44    break
     45  fi
     46done
    3847rm -f index.html
    3948
  • scripts/fetch/eglibc.sh

    r842cd58 r29f6db3  
    3636#
    3737cd ~/tmp
    38 wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
    39 PATCH_NUM=$(cat index.html | grep eglibc | grep "${SOURCEVERSION}" | grep fixes | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
    40 PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     38wget http://svn.cross-lfs.org/svn/repos/patches/eglibc/ --no-remove-listing
     39for num in $(seq 1 99); do
     40  PATCH_NUM=$(cat index.html | grep "${VERSION}" | grep fixes-${num} | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     41  if [ "${PATCH_NUM}" = "0" -a "${num}" = "1" ]; then
     42    PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     43    break
     44  fi
     45  if [ "${PATCH_NUM}" != "${num}" ]; then
     46    PATCH_NUM=$(expr ${num})
     47    break
     48  fi
     49done
    4150rm -f index.html
    4251
Note: See TracChangeset for help on using the changeset viewer.