Changeset d8a9d8b for scripts/patch/gcc-specs-patch.sh
- Timestamp:
- Jul 3, 2009, 11:26:52 AM (15 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- acf32d0
- Parents:
- 2349999
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/gcc-specs-patch.sh
r2349999 rd8a9d8b 16 16 # Download GCC Source 17 17 # 18 cd /usr/src18 cd ~/tmp 19 19 if ! [ -e gcc-${VERSION}.tar.bz2 ]; then 20 20 wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2 … … 23 23 # Cleanup Directory 24 24 # 25 cd ~/tmp 25 26 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 26 27 tar xvf gcc-${VERSION}.tar.bz2 27 28 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 28 CURRENTDIR=$(pwd -P)29 29 30 30 # Modify the Data 31 31 # 32 cd /usr/src/gcc-${VERSION}32 cd ~/tmp/gcc-${VERSION} 33 33 for file in $(find gcc/config -name "*.h"); do 34 34 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 53 53 # Create Patch 54 54 # 55 cd /usr/src 56 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-specs-x.patch 57 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-specs-x.patch 58 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-specs-x.patch 59 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-specs-x.patch 60 echo " the Pure LFS project." >> gcc-${VERSION}-specs-x.patch 61 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-specs-x.patch 62 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-specs-x.patch 63 echo "" >> gcc-${VERSION}-specs-x.patch 64 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-specs-x.patch 55 cd ~/tmp 56 install -d ~/patches 57 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-specs-x.patch 58 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-specs-x.patch 59 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-specs-x.patch 60 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-specs-x.patch 61 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-specs-x.patch 62 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-specs-x.patch 63 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-specs-x.patch 64 echo "" >> ~/patches/gcc-${VERSION}-specs-x.patch 65 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-specs-x.patch 65 66 66 67 # Cleanup Directory 67 68 # 69 cd ~/tmp 68 70 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 69 71 tar xvf gcc-${VERSION}.tar.bz2 70 72 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 71 CURRENTDIR=$(pwd -P)72 73 73 74 # Modify the Data 74 75 # 75 cd /usr/src/gcc-${VERSION}76 cd ~/tmp/gcc-${VERSION} 76 77 for file in $(find gcc/config -name "*.h"); do 77 78 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 98 99 # Create Patch 99 100 # 100 cd /usr/src 101 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64_specs-x.patch 102 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64_specs-x.patch 103 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64_specs-x.patch 104 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64_specs-x.patch 105 echo " the Pure LFS project." >> gcc-${VERSION}-pure64_specs-x.patch 106 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64_specs-x.patch 107 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64_specs-x.patch 108 echo "" >> gcc-${VERSION}-pure64_specs-x.patch 109 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64_specs-x.patch 101 cd ~/tmp 102 install -d ~/patches 103 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64_specs-x.patch 104 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 105 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 106 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 107 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 108 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 109 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 110 echo "" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 111 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch 110 112 111 113 # Cleanup Directory 112 114 # 115 cd ~/tmp 113 116 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 114 117 tar xvf gcc-${VERSION}.tar.bz2 … … 118 121 # Modify the Data 119 122 # 120 cd /usr/src/gcc-${VERSION}123 cd ~/tmp/gcc-${VERSION} 121 124 for file in $(find gcc/config -name "*.h"); do 122 125 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 151 154 # Create Patch 152 155 # 153 cd /usr/src 154 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-pure64-x.patch 155 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-pure64-x.patch 156 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-pure64-x.patch 157 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> gcc-${VERSION}-pure64-x.patch 158 echo " the Pure LFS project." >> gcc-${VERSION}-pure64-x.patch 159 echo "Upstream Status: Not Applied" >> gcc-${VERSION}-pure64-x.patch 160 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> gcc-${VERSION}-pure64-x.patch 161 echo "" >> gcc-${VERSION}-pure64-x.patch 162 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-pure64-x.patch 156 cd ~/tmp 157 install -d ~/patches 158 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64-x.patch 159 echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64-x.patch 160 echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64-x.patch 161 echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64-x.patch 162 echo " the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64-x.patch 163 echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64-x.patch 164 echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64-x.patch 165 echo "" >> ~/patches/gcc-${VERSION}-pure64-x.patch 166 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64-x.patch 163 167 164 echo "Created /usr/src/gcc-${VERSION}-specs-x.patch." 165 echo "Created /usr/src/gcc-${VERSION}-pure64_specs-x.patch." 166 echo "Created /usr/src/gcc-${VERSION}-pure64-x.patch." 168 echo "Created ~/patches/gcc-${VERSION}-specs-x.patch." 169 echo "Created ~/patches/gcc-${VERSION}-pure64_specs-x.patch." 170 echo "Created ~/patches/gcc-${VERSION}-pure64-x.patch." 171 172 # Cleanup Directory 173 # 174 cd ~/tmp 175 rm -rf gcc-${VERSION} gcc-${VERSION}.orig
Note: See TracChangeset
for help on using the changeset viewer.