Changeset ea546c8 in clfs-embedded for scripts


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

Updates to Patch Creaters

Location:
scripts/patch
Files:
2 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."
  • 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.