Changeset ea546c8 in clfs-embedded for scripts/patch/uclibc-patches.sh


Ignore:
Timestamp:
Feb 16, 2009, 4:28:22 PM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
a4733fb
Parents:
7791a76
Message:

Updates to Patch Creaters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/patch/uclibc-patches.sh

    r7791a76 rea546c8  
    2121fi
    2222
     23# Set Patch Number
     24#
     25cd /usr/src
     26wget http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/patches/ --no-remove-listing
     27PATCH_NUM=$(cat index.html | grep uClibc | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     28PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     29rm -f index.html
     30
    2331# Cleanup Directory
    2432#
     
    3745#
    3846cd /usr/src
    39 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > uClibc-${VERSION}-branch_update-x.patch
    40 echo "Date: `date +%m-%d-%Y`" >> uClibc-${VERSION}-branch_update-x.patch
    41 echo "Initial Package Version: ${VERSION}" >> uClibc-${VERSION}-branch_update-x.patch
    42 echo "Origin: Upstream" >> uClibc-${VERSION}-branch_update-x.patch
    43 echo "Upstream Status: Applied" >> uClibc-${VERSION}-branch_update-x.patch
    44 echo "Description: This is a branch update for uClibc-${VERSION}, and should be" >> uClibc-${VERSION}-branch_update-x.patch
    45 echo "             rechecked periodically." >> uClibc-${VERSION}-branch_update-x.patch
    46 echo "" >> uClibc-${VERSION}-branch_update-x.patch
    47 diff -Naur uClibc-${VERSION}.orig uClibc-${VERSION} >> uClibc-${VERSION}-branch_update-x.patch
    48 echo "Created /usr/src/uClibc-${VERSION}-branch_update-x.patch."
     47echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     48echo "Date: `date +%m-%d-%Y`" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     49echo "Initial Package Version: ${VERSION}" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     50echo "Origin: Upstream" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     51echo "Upstream Status: Applied" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     52echo "Description: This is a branch update for uClibc-${VERSION}, and should be" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     53echo "             rechecked periodically." >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     54echo "" >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     55diff -Naur uClibc-${VERSION}.orig uClibc-${VERSION} >> uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch
     56echo "Created /usr/src/uClibc-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.