- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/gcc-specs-patch.sh
rd8a9d8b r0804c00 16 16 # Download GCC Source 17 17 # 18 cd ~/tmp18 cd /usr/src 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 ~/tmp26 25 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 27 26 tar xvf gcc-${VERSION}.tar.bz2 28 27 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 28 CURRENTDIR=$(pwd -P) 29 29 30 30 # Modify the Data 31 31 # 32 cd ~/tmp/gcc-${VERSION}32 cd /usr/src/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 ~/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 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 66 65 67 66 # Cleanup Directory 68 67 # 69 cd ~/tmp70 68 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 71 69 tar xvf gcc-${VERSION}.tar.bz2 72 70 cp -ar gcc-${VERSION} gcc-${VERSION}.orig 71 CURRENTDIR=$(pwd -P) 73 72 74 73 # Modify the Data 75 74 # 76 cd ~/tmp/gcc-${VERSION}75 cd /usr/src/gcc-${VERSION} 77 76 for file in $(find gcc/config -name "*.h"); do 78 77 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 99 98 # Create Patch 100 99 # 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 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 112 110 113 111 # Cleanup Directory 114 112 # 115 cd ~/tmp116 113 rm -rf gcc-${VERSION} gcc-${VERSION}.orig 117 114 tar xvf gcc-${VERSION}.tar.bz2 … … 121 118 # Modify the Data 122 119 # 123 cd ~/tmp/gcc-${VERSION}120 cd /usr/src/gcc-${VERSION} 124 121 for file in $(find gcc/config -name "*.h"); do 125 122 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then … … 154 151 # Create Patch 155 152 # 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 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 167 163 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 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."
Note:
See TracChangeset
for help on using the changeset viewer.