Ignore:
Timestamp:
02/16/09 12:47:36 (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/vim-patch.sh

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.vim.org/pub/vim/unix/vim-${VERSION}.tar.bz2
    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 vim | 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
     
    7684    fi
    7785   fi
    78    COUNT=`expr ${COUNT} + 1`
     86   COUNT=$(expr ${COUNT} + 1)
    7987done
    8088
     
    96104#
    97105cd /usr/src
    98 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-x.patch
    99 echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-x.patch
    100 echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-x.patch
    101 echo "Origin: Upstream" >> vim-${VERSION}-branch_update-x.patch
    102 echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-x.patch
    103 echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-x.patch
     106echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     107echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     108echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     109echo "Origin: Upstream" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     110echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     111echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
    104112if [ -n "${SKIPPED}" ]; then
    105   echo "             The following patches were skipped" >> vim-${VERSION}-branch_update-x.patch
    106   echo "            ${SKIPPED}" >> vim-${VERSION}-branch_update-x.patch
     113  echo "             The following patches were skipped" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     114  echo "            ${SKIPPED}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
    107115fi
    108 echo "" >> vim-${VERSION}-branch_update-x.patch
    109 diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-x.patch
    110 echo "Created /usr/src/vim-${VERSION}-branch_update-x.patch."
     116echo "" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     117diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     118echo "Created /usr/src/vim-${VERSION}-branch_update-$(PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.