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

    r61a83e8 rc7ef534  
    2929  wget ftp://invisible-island.net/ncurses/ncurses-${VERSION}.tar.gz
    3030fi
     31
     32# Set Patch Number
     33#
     34cd /usr/src
     35wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     36PATCH_NUM=$(cat index.html | grep ncurses | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     37PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     38rm -f index.html
    3139
    3240# Cleanup Directory
     
    94102#
    95103cd /usr/src
    96 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-x.patch
    97 echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-x.patch
    98 echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-x.patch
    99 echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-x.patch
    100 echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-x.patch
    101 echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-x.patch
    102 echo "             rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-x.patch
    103 echo "" >> ncurses-${VERSION}-branch_update-x.patch
    104 diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-x.patch
    105 echo "Created /usr/src/ncurses-${VERSION}-branch_update-x.patch."
     104echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     105echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     106echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     107echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "             rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     112diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Created /usr/src/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.