Ignore:
Timestamp:
Feb 16, 2009, 12:47:36 PM (14 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/readline-patch.sh

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}.tar.gz
    3131fi
     32
     33# Set Patch Number
     34#
     35cd /usr/src
     36wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     37PATCH_NUM=$(cat index.html | grep readline | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     38PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     39rm -f index.html
    3240
    3341# Cleanup Directory
     
    98106#
    99107cd /usr/src
    100 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-x.patch
    101 echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-x.patch
    102 echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-x.patch
    103 echo "Origin: Upstream" >> readline-${VERSION}-branch_update-x.patch
    104 echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-x.patch
    105 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-x.patch
     108echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Origin: Upstream" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    106114if [ -n "${SKIPPED}" ]; then
    107   echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-x.patch
    108   echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-x.patch
     115  echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     116  echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    109117fi
    110 echo "" >> readline-${VERSION}-branch_update-x.patch
    111 diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-x.patch
    112 echo "Created /usr/src/readline-${VERSION}-branch_update-x.patch."
     118echo "" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     119diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     120echo "Created /usr/src/readline-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.