Ignore:
Timestamp:
Jan 20, 2009, 4:01:19 PM (14 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:
550b73d
Parents:
d8b9d99
Message:

Added Perl Patch and cleaned up

File:
1 edited

Legend:

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

    rd8b9d99 r9676bac  
    99#
    1010if [ "${VERSION}" = "" ]; then
    11         echo "$0 - GCC_Version"
    12         echo "This will Create a Patch for GCC Specs GCC_Version"
     11  echo "$0 - GCC_Version"
     12  echo "This will Create a Patch for GCC Specs GCC_Version"
     13  exit 255
    1314fi
    1415
     
    1718cd /usr/src
    1819if ! [ -e gcc-${VERSION}.tar.bz2  ]; then
    19         wget ftp://ftp.gnu.org/gnu/gcc/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
     20  wget ftp://ftp.gnu.org/gnu/gcc/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
    2021fi
    2122
     
    3132cd /usr/src/gcc-${VERSION}
    3233for file in $(find gcc/config -name "*.h"); do
    33         if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
    34                 if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then
    35                         echo "Modifying ${file}..."
    36                         sed -i '/DYNAMIC_LINKER/s@"/lib@"/tools/lib@' ${file}
    37                 fi
    38                 if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then
    39                         echo "Modifying ${file}..."
    40                         sed -i '/-dynamic-linker/s@ /lib@ /tools/lib@' ${file}
    41                 fi
    42         fi
     34  if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then
     35    if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then
     36      echo "Modifying ${file}..."
     37      sed -i '/DYNAMIC_LINKER/s@"/lib@"/tools/lib@' ${file}
     38    fi
     39    if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then
     40      echo "Modifying ${file}..."
     41      sed -i '/-dynamic-linker/s@ /lib@ /tools/lib@' ${file}
     42    fi
     43  fi
    4344done
    4445
Note: See TracChangeset for help on using the changeset viewer.