Ignore:
Timestamp:
Jan 20, 2009, 4:01:19 PM (17 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/binutils-patch.sh

    rd8b9d99 r9676bac  
    99#
    1010if [ "${VERSION}" = "" ]; then
    11         echo "$0 - Binutils_Version"
    12         echo "This will Create a Patch for Binutils Binutils_Version"
     11  echo "$0 - Binutils_Version"
     12  echo "This will Create a Patch for Binutils Binutils_Version"
     13  exit 255
    1314fi
    1415
     
    1718cd /usr/src
    1819if ! [ -e binutils-${VERSION}.tar.bz2  ]; then
    19         wget ftp://ftp.gnu.org/gnu/binutils/binutils-${VERSION}.tar.bz2
     20  wget ftp://ftp.gnu.org/gnu/binutils/binutils-${VERSION}.tar.bz2
    2021fi
    2122
     
    3839DIRS="binutils-${VERSION} binutils-${VERSION}.orig"
    3940for DIRECTORY in ${DIRS}; do
    40 cd /usr/src/${DIRECTORY}
    41         FILE_LIST=".cvsignore *.gmo"
    42         for files in ${FILE_LIST}; do
    43                 REMOVE=$(find * -name ${files})
    44                 for file in $REMOVE; do
    45                         rm -f ${file}
    46                 done
    47         done
     41  cd /usr/src/${DIRECTORY}
     42  FILE_LIST=".cvsignore *.gmo"
     43  for files in ${FILE_LIST}; do
     44    REMOVE=$(find * -name ${files})
     45    for file in $REMOVE; do
     46      rm -f ${file}
     47    done
     48  done
    4849
    49         REMOVE=".cvsignore MAINTAINERS COPYING.LIBGLOSS COPYING.NEWLIB README-maintainer-mode depcomp
    50                 ChangeLog compile ltgcc.m4 lt~obsolete.m4 etc/ChangeLog etc/add-log.el etc/add-log.vi"
    51         for file in $REMOVE; do
    52                 rm -f ${file}
    53         done
    54         cd ..
     50  REMOVE=".cvsignore MAINTAINERS COPYING.LIBGLOSS COPYING.NEWLIB README-maintainer-mode depcomp
     51    ChangeLog compile ltgcc.m4 lt~obsolete.m4 etc/ChangeLog etc/add-log.el etc/add-log.vi"
     52  for file in $REMOVE; do
     53    rm -f ${file}
     54    done
     55    cd ..
    5556done
    5657
     
    5859#
    5960for dir in $(find * -type d); do
    60         cd /usr/src/binutils-${VERSION}
    61         for file in $(find . -name '*~'); do
    62                 rm -f ${file}
    63         done
    64         for file in $(find . -name '*.orig'); do
    65                 rm -f ${file}
    66         done
     61  cd /usr/src/binutils-${VERSION}
     62  for file in $(find . -name '*~'); do
     63    rm -f ${file}
     64  done
     65  for file in $(find . -name '*.orig'); do
     66    rm -f ${file}
     67  done
    6768done
    6869cd /usr/src/binutils-${VERSION}
     
    8990diff -Naur binutils-${VERSION}.orig binutils-${VERSION} >> binutils-${VERSION}-branch_update-x.patch
    9091echo "Created /usr/src/binutils-${VERSION}-branch_update-x.patch."
    91 
Note: See TracChangeset for help on using the changeset viewer.