Ignore:
Timestamp:
Feb 16, 2009, 12:47:36 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:
099bfc2
Parents:
61a83e8
Message:

Figure out what the last patch # is and grab the next #

File:
1 edited

Legend:

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

    r61a83e8 rc7ef534  
    2323  wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2
    2424fi
     25
     26# Set Patch Number
     27#
     28cd /usr/src
     29wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     30PATCH_NUM=$(cat index.html | grep binutils | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     31PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     32rm -f index.html
    2533
    2634# Cleanup Directory
     
    7078#
    7179cd /usr/src
    72 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-x.patch
    73 echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    74 echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    75 echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    76 echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    77 echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    78 echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-x.patch
    79 echo "" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    80 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-x.patch
    81 echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-x.patch."
     80echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     81echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     82echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     83echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     84echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     85echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     86echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     87echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     88diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     89echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.