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


Ignore:
Timestamp:
Feb 16, 2009, 4:28:22 PM (17 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/busybox-patch.sh

    r7791a76 rea546c8  
    2727  wget http://busybox.net/downloads/busybox-${VERSION}.tar.bz2
    2828fi
     29
     30# Set Patch Number
     31#
     32cd /usr/src
     33wget http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/patches/ --no-remove-listing
     34PATCH_NUM=$(cat index.html | grep busybox | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     35PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     36rm -f index.html
    2937
    3038# Cleanup Directory
     
    6876#
    6977cd /usr/src
    70 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > busybox-${VERSION}-branch_update-x.patch
    71 echo "Date: `date +%m-%d-%Y`" >> busybox-${VERSION}-branch_update-x.patch
    72 echo "Initial Package Version: ${VERSION}" >> busybox-${VERSION}-branch_update-x.patch
    73 echo "Origin: Upstream" >> busybox-${VERSION}-branch_update-x.patch
    74 echo "Upstream Status: Applied" >> busybox-${VERSION}-branch_update-x.patch
    75 echo "Description: This is a branch update for busybox-${VERSION}, and should be" >> busybox-${VERSION}-branch_update-x.patch
    76 echo "             rechecked periodically." >> busybox-${VERSION}-branch_update-x.patch
    77 echo "" >> busybox-${VERSION}-branch_update-x.patch
    78 diff -Naur busybox-${VERSION}.orig busybox-${VERSION} >> busybox-${VERSION}-branch_update-x.patch
    79 echo "Created /usr/src/busybox-${VERSION}-branch_update-x.patch."
     78echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     79echo "Date: `date +%m-%d-%Y`" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     80echo "Initial Package Version: ${VERSION}" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     81echo "Origin: Upstream" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     82echo "Upstream Status: Applied" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     83echo "Description: This is a branch update for busybox-${VERSION}, and should be" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     84echo "             rechecked periodically." >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     85echo "" >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     86diff -Naur busybox-${VERSION}.orig busybox-${VERSION} >> busybox-${VERSION}-branch_update-${PATCH_NUM}.patch
     87echo "Created /usr/src/busybox-${VERSION}-branch_update-${PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.