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/bash-patch.sh

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.cwru.edu/pub/bash/bash-${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 bash | 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
     
    97105#
    98106cd /usr/src
    99 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-x.patch
    100 echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-x.patch
    101 echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-x.patch
    102 echo "Origin: Upstream" >> bash-${VERSION}-branch_update-x.patch
    103 echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-x.patch
    104 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-x.patch
     107echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Origin: Upstream" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    105113if [ -n "${SKIPPED}" ]; then
    106   echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-x.patch
    107   echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-x.patch
     114  echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     115  echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    108116fi
    109 echo "" >> bash-${VERSION}-branch_update-x.patch
    110 diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-x.patch
    111 echo "Created /usr/src/bash-${VERSION}-branch_update-x.patch."
     117echo "" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     118diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     119echo "Created /usr/src/bash-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.