Changeset 06fb515 for scripts/patch


Ignore:
Timestamp:
Feb 7, 2009, 12:04:51 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:
46945af
Parents:
6e879d0
Message:

Updated Linux to 2.6.28.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/patch/binutils-patch.sh

    r6e879d0 r06fb515  
    55#
    66VERSION=$1
     7SOURCEVERSION=$2
    78
    89# Check Input
     
    1011if [ "${VERSION}" = "" ]; then
    1112  echo "$0 - Binutils_Version"
    12   echo "This will Create a Patch for Binutils Binutils_Version"
     13  echo "This will Create a Patch for Binutils Binutils_Series Binutils_Version"
    1314  exit 255
    1415fi
    1516
     17#
    1618# Download Binutils Source
    1719#
    1820cd /usr/src
    19 if ! [ -e binutils-${VERSION}.tar.bz2  ]; then
    20   wget ftp://ftp.gnu.org/gnu/binutils/binutils-${VERSION}.tar.bz2
     21if ! [ -e binutils-${SOURCEVERSION}.tar.bz2  ]; then
     22  wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2
    2123fi
    2224
    2325# Cleanup Directory
    2426#
    25 rm -rf binutils-${VERSION} binutils-${VERSION}.orig
    26 tar xvf binutils-${VERSION}.tar.bz2
    27 mv binutils-${VERSION} binutils-${VERSION}.orig
     27rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
     28tar xvf binutils-${SOURCEVERSION}.tar.bz2
     29mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig
    2830CURRENTDIR=$(pwd -P)
    2931
     
    3335FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g')
    3436cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src export -rbinutils-${FIXEDVERSION}-branch binutils
    35 mv src binutils-${VERSION}
     37mv src binutils-${SOURCEVERSION}
    3638
    3739# Cleanup
    3840#
    39 DIRS="binutils-${VERSION} binutils-${VERSION}.orig"
     41DIRS="binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig"
    4042for DIRECTORY in ${DIRS}; do
    4143  cd /usr/src/${DIRECTORY}
     
    5557    cd ..
    5658done
    57 cd /usr/src/binutils-${VERSION}
    58 rm -f /usr/src/binutils-${VERSION}.orig/md5.sum
     59cd /usr/src/binutils-${SOURCEVERSION}
     60rm -f /usr/src/binutils-${SOURCEVERSION}.orig/md5.sum
    5961
    6062# Make Binutils a Release
    6163#
    62 cd /usr/src/binutils-${VERSION}
     64cd /usr/src/binutils-${SOURCEVERSION}
    6365sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.am
    6466sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.in
     
    6769#
    6870cd /usr/src
    69 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${VERSION}-branch_update-x.patch
    70 echo "Date: `date +%m-%d-%Y`" >> binutils-${VERSION}-branch_update-x.patch
    71 echo "Initial Package Version: ${VERSION}" >> binutils-${VERSION}-branch_update-x.patch
    72 echo "Origin: Upstream" >> binutils-${VERSION}-branch_update-x.patch
    73 echo "Upstream Status: Applied" >> binutils-${VERSION}-branch_update-x.patch
    74 echo "Description: This is a branch update for binutils-${VERSION}, and should be" >> binutils-${VERSION}-branch_update-x.patch
    75 echo "             rechecked periodically." >> binutils-${VERSION}-branch_update-x.patch
    76 echo "" >> binutils-${VERSION}-branch_update-x.patch
    77 diff -Naur binutils-${VERSION}.orig binutils-${VERSION} >> binutils-${VERSION}-branch_update-x.patch
    78 echo "Created /usr/src/binutils-${VERSION}-branch_update-x.patch."
     71echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-x.patch
     72echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     73echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     74echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     75echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     76echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     77echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-x.patch
     78echo "" >> binutils-${SOURCEVERSION}-branch_update-x.patch
     79diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-x.patch
     80echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-x.patch."
Note: See TracChangeset for help on using the changeset viewer.