Changeset d8bd081 for scripts/patch


Ignore:
Timestamp:
Jun 5, 2009, 1:54:35 PM (16 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:
ca9d9fb5
Parents:
e0592ba
Message:

Fixed gcc patch maker

File:
1 edited

Legend:

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

    re0592ba rd8bd081  
    3131# Cleanup Directory
    3232#
    33 rm -rf gcc-${VERSION} gcc-${VERSION}.orig
    34 tar xvf gcc-${VERSION}.tar.bz2
    35 mv gcc-${VERSION} gcc-${VERSION}.orig
     33#rm -rf gcc-${VERSION} gcc-${VERSION}.orig
     34#tar xvf gcc-${VERSION}.tar.bz2
     35#mv gcc-${VERSION} gcc-${VERSION}.orig
    3636CURRENTDIR=$(pwd -P)
    3737
    3838# Get Current Updates from SVN
    3939#
    40 cd /usr/src
    41 NUM1=$(echo ${VERSION} | cut -f1 -d.)
    42 NUM2=$(echo ${VERSION} | cut -f2 -d.)
    43 FIXEDVERSION=$(echo -n "$NUM1" ; echo -n "_" ; echo -e "$NUM2")
    44 svn export svn://gcc.gnu.org/svn/gcc/branches/gcc-${FIXEDVERSION}-branch gcc-${VERSION}
     40#cd /usr/src
     41#NUM1=$(echo ${VERSION} | cut -f1 -d.)
     42#NUM2=$(echo ${VERSION} | cut -f2 -d.)
     43#FIXEDVERSION=$(echo -n "$NUM1" ; echo -n "_" ; echo -e "$NUM2")
     44#svn export svn://gcc.gnu.org/svn/gcc/branches/gcc-${FIXEDVERSION}-branch gcc-${VERSION}
    4545
    4646# Add a custom version string
     
    5454for DIRECTORY in ${DIRS}; do
    5555  cd ${DIRECTORY}
    56   REMOVE="ABOUT-NLS COPYING COPYING.LIB ChangeLog ChangeLog.tree-ssa MAINTAINERS Makefile.def
    57     Makefile.in Makefile.tpl README README.SCO boehm-gc/ChangeLog BUGS FAQ LAST_UPDATED
    58     MD5SUMS NEWS bugs.html faq.html gcc/BASE-VER gcc/DEV-PHASE gcc/c-parse.c
    59     gcc/gengtype-lex.c gcc/c-parse.y gcc/gengtype-yacc.c gcc/gengtype-yacc.h gcc/f/BUGS gcc/f/NEWS
    60     gcc/java/parse-scan.c gcc/java/parse.c gcc/objc/objc-parse.c gcc/objc/objc-parse.y"
     56  REMOVE="ABOUT-NLS COPYING COPYING.LIB MAINTAINERS Makefile.def
     57    Makefile.in Makefile.tpl README README.SCO BUGS FAQ LAST_UPDATED
     58    MD5SUMS NEWS bugs.html faq.html gcc/BASE-VER gcc/DEV-PHASE
     59    gcc/f/BUGS gcc/f/NEWS gcc/c-parse.c gcc/gengtype-lex.c gcc/c-parse.y
     60    gcc/gengtype-yacc.c gcc/gengtype-yacc.h gcc/java/parse-scan.c
     61    gcc/java/parse.c gcc/objc/objc-parse.c gcc/objc/objc-parse.y
     62    libjava/classpath/doc/cp-tools.info"
    6163  for file in ${REMOVE}; do
    6264    rm -f $file
     65  done
     66  for file in $(find . -name "ChangeLog*" | sed -e 's@./@@'); do
     67    rm -f ${file}
    6368  done
    6469  rm -rf INSTALL
    6570  rm -f fastjar/*.{1,info} gcc/doc/*.{1,info,7} gcc/fortran/*.{1,info,7}
    6671  rm -f gcc/po/*.{gmo,po}  libcpp/po/*.{gmo,po} libgomp/*.{1,info,7}
     72  rm -f libjava/classpath/doc/*.{1,info}
    6773  cd ..
    6874done
Note: See TracChangeset for help on using the changeset viewer.