Changeset 06fb515 for scripts/patch
- Timestamp:
- Feb 7, 2009, 12:04:51 PM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 46945af
- Parents:
- 6e879d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/binutils-patch.sh
r6e879d0 r06fb515 5 5 # 6 6 VERSION=$1 7 SOURCEVERSION=$2 7 8 8 9 # Check Input … … 10 11 if [ "${VERSION}" = "" ]; then 11 12 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" 13 14 exit 255 14 15 fi 15 16 17 # 16 18 # Download Binutils Source 17 19 # 18 20 cd /usr/src 19 if ! [ -e binutils-${ VERSION}.tar.bz2 ]; then20 wget ftp://ftp.gnu.org/gnu/binutils/binutils-${ VERSION}.tar.bz221 if ! [ -e binutils-${SOURCEVERSION}.tar.bz2 ]; then 22 wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2 21 23 fi 22 24 23 25 # Cleanup Directory 24 26 # 25 rm -rf binutils-${ VERSION} binutils-${VERSION}.orig26 tar xvf binutils-${ VERSION}.tar.bz227 mv binutils-${ VERSION} binutils-${VERSION}.orig27 rm -rf binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig 28 tar xvf binutils-${SOURCEVERSION}.tar.bz2 29 mv binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig 28 30 CURRENTDIR=$(pwd -P) 29 31 … … 33 35 FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g') 34 36 cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src export -rbinutils-${FIXEDVERSION}-branch binutils 35 mv src binutils-${ VERSION}37 mv src binutils-${SOURCEVERSION} 36 38 37 39 # Cleanup 38 40 # 39 DIRS="binutils-${ VERSION} binutils-${VERSION}.orig"41 DIRS="binutils-${SOURCEVERSION} binutils-${SOURCEVERSION}.orig" 40 42 for DIRECTORY in ${DIRS}; do 41 43 cd /usr/src/${DIRECTORY} … … 55 57 cd .. 56 58 done 57 cd /usr/src/binutils-${ VERSION}58 rm -f /usr/src/binutils-${ VERSION}.orig/md5.sum59 cd /usr/src/binutils-${SOURCEVERSION} 60 rm -f /usr/src/binutils-${SOURCEVERSION}.orig/md5.sum 59 61 60 62 # Make Binutils a Release 61 63 # 62 cd /usr/src/binutils-${ VERSION}64 cd /usr/src/binutils-${SOURCEVERSION} 63 65 sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.am 64 66 sed -i 's/# RELEASE=y/RELEASE=y/g' bfd/Makefile.in … … 67 69 # 68 70 cd /usr/src 69 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${ VERSION}-branch_update-x.patch70 echo "Date: `date +%m-%d-%Y`" >> binutils-${ VERSION}-branch_update-x.patch71 echo "Initial Package Version: ${ VERSION}" >> binutils-${VERSION}-branch_update-x.patch72 echo "Origin: Upstream" >> binutils-${ VERSION}-branch_update-x.patch73 echo "Upstream Status: Applied" >> binutils-${ VERSION}-branch_update-x.patch74 echo "Description: This is a branch update for binutils-${ VERSION}, and should be" >> binutils-${VERSION}-branch_update-x.patch75 echo " rechecked periodically." >> binutils-${ VERSION}-branch_update-x.patch76 echo "" >> binutils-${ VERSION}-branch_update-x.patch77 diff -Naur binutils-${ VERSION}.orig binutils-${VERSION} >> binutils-${VERSION}-branch_update-x.patch78 echo "Created /usr/src/binutils-${ VERSION}-branch_update-x.patch."71 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-x.patch 72 echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-x.patch 73 echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-x.patch 74 echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-x.patch 75 echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-x.patch 76 echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-x.patch 77 echo " rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-x.patch 78 echo "" >> binutils-${SOURCEVERSION}-branch_update-x.patch 79 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-x.patch 80 echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-x.patch."
Note:
See TracChangeset
for help on using the changeset viewer.