Ignore:
Timestamp:
Jul 3, 2009, 11:26:52 AM (15 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:
acf32d0
Parents:
2349999
Message:

Updates to Patch Scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/patch/gcc-specs-patch.sh

    r2349999 rd8a9d8b  
    1616# Download GCC Source
    1717#
    18 cd /usr/src
     18cd ~/tmp
    1919if ! [ -e gcc-${VERSION}.tar.bz2  ]; then
    2020  wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
     
    2323# Cleanup Directory
    2424#
     25cd ~/tmp
    2526rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    2627tar xvf gcc-${VERSION}.tar.bz2
    2728cp -ar gcc-${VERSION} gcc-${VERSION}.orig
    28 CURRENTDIR=$(pwd -P)
    2929
    3030# Modify the Data
    3131#
    32 cd /usr/src/gcc-${VERSION}
     32cd ~/tmp/gcc-${VERSION}
    3333for file in $(find gcc/config -name "*.h"); do
    3434  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    5353# Create Patch
    5454#
    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
     55cd ~/tmp
     56install -d ~/patches
     57echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-specs-x.patch
     58echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-specs-x.patch
     59echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-specs-x.patch
     60echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-specs-x.patch
     61echo "        the Pure LFS project." >> ~/patches/gcc-${VERSION}-specs-x.patch
     62echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-specs-x.patch
     63echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-specs-x.patch
     64echo "" >> ~/patches/gcc-${VERSION}-specs-x.patch
     65diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-specs-x.patch
    6566
    6667# Cleanup Directory
    6768#
     69cd ~/tmp
    6870rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    6971tar xvf gcc-${VERSION}.tar.bz2
    7072cp -ar gcc-${VERSION} gcc-${VERSION}.orig
    71 CURRENTDIR=$(pwd -P)
    7273
    7374# Modify the Data
    7475#
    75 cd /usr/src/gcc-${VERSION}
     76cd ~/tmp/gcc-${VERSION}
    7677for file in $(find gcc/config -name "*.h"); do
    7778  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    9899# Create Patch
    99100#
    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
     101cd ~/tmp
     102install -d ~/patches
     103echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     104echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     105echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     106echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     107echo "        the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     108echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     109echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     110echo "" >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
     111diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64_specs-x.patch
    110112
    111113# Cleanup Directory
    112114#
     115cd ~/tmp
    113116rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    114117tar xvf gcc-${VERSION}.tar.bz2
     
    118121# Modify the Data
    119122#
    120 cd /usr/src/gcc-${VERSION}
     123cd ~/tmp/gcc-${VERSION}
    121124for file in $(find gcc/config -name "*.h"); do
    122125  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     
    151154# Create Patch
    152155#
    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
     156cd ~/tmp
     157install -d ~/patches
     158echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ~/patches/gcc-${VERSION}-pure64-x.patch
     159echo "Date: `date +%m-%d-%Y`" >> ~/patches/gcc-${VERSION}-pure64-x.patch
     160echo "Initial Package Version: ${VERSION}" >> ~/patches/gcc-${VERSION}-pure64-x.patch
     161echo "Origin: Idea originally developed by Ryan Oliver and Greg Schafer for" >> ~/patches/gcc-${VERSION}-pure64-x.patch
     162echo "        the Pure LFS project." >> ~/patches/gcc-${VERSION}-pure64-x.patch
     163echo "Upstream Status: Not Applied" >> ~/patches/gcc-${VERSION}-pure64-x.patch
     164echo "Description: This patch modifies the location of the dynamic linker for gcc-${VERSION}." >> ~/patches/gcc-${VERSION}-pure64-x.patch
     165echo "" >> ~/patches/gcc-${VERSION}-pure64-x.patch
     166diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> ~/patches/gcc-${VERSION}-pure64-x.patch
    163167
    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."
     168echo "Created ~/patches/gcc-${VERSION}-specs-x.patch."
     169echo "Created ~/patches/gcc-${VERSION}-pure64_specs-x.patch."
     170echo "Created ~/patches/gcc-${VERSION}-pure64-x.patch."
     171
     172# Cleanup Directory
     173#
     174cd ~/tmp
     175rm -rf gcc-${VERSION} gcc-${VERSION}.orig
Note: See TracChangeset for help on using the changeset viewer.