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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/patch/gcc-patch.sh

    r842cd58 r29f6db3  
    2929#
    3030cd ~/tmp
    31 wget http://patches.cross-lfs.org/dev/ --no-remove-listing
    32 PATCH_NUM=$(cat index.html | grep gcc | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
    33 PATCH_NUM=$(expr ${PATCH_NUM} + 1)
    34 PATCH_NUM2=$(cat index.html | grep gcc | grep "${VERSION}" | grep fixes | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
    35 PATCH_NUM2=$(expr ${PATCH_NUM2} + 1)
     31wget http://svn.cross-lfs.org/svn/repos/patches/gcc/ --no-remove-listing
     32for num in $(seq 1 99); do
     33  PATCH_NUM=$(cat index.html | grep "${VERSION}" | grep branch_update-${num} | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     34  if [ "${PATCH_NUM}" = "0" -a "${num}" = "1" ]; then
     35    PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     36    break
     37  fi
     38  if [ "${PATCH_NUM}" != "${num}" ]; then
     39    PATCH_NUM=$(expr ${num})
     40    break
     41  fi
     42done
     43for num in $(seq 1 99); do
     44  PATCH_NUM2=$(cat index.html | grep "${SOURCEVERSION}" | grep fixes-${num} | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     45  if [ "${PATCH_NUM2}" = "0" -a "${num}" = "1" ]; then
     46    PATCH_NUM2=$(expr ${PATCH_NUM2} + 1)
     47    break
     48  fi
     49  if [ "${PATCH_NUM2}" != "${num}" ]; then
     50    PATCH_NUM2=$(expr ${num})
     51    break
     52  fi
     53done
    3654rm -f index.html
    3755
Note: See TracChangeset for help on using the changeset viewer.