Ignore:
Timestamp:
Aug 15, 2009, 11:36:56 AM (16 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.