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

Added PPC patch. Fixed Patch Fetching Scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.