Changeset 550b73d


Ignore:
Timestamp:
Jan 20, 2009, 4:31:32 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:
42622bd
Parents:
9676bac
Message:

Update Perl Branch Script

File:
1 edited

Legend:

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

    r9676bac r550b73d  
    3232cd /usr/src
    3333FIXEDVERSION=$(echo ${VERSION} | sed -e 's ..$  ')
    34 rsync -avz rsync://perl5.git.perl.org/APC/perl-${FIXEDVERSION}.x perl-${VERSION}
     34rsync -avz rsync://perl5.git.perl.org/APC/perl-${FIXEDVERSION}.x tmp
     35cd tmp
     36mv perl-${FIXEDVERSION}.x /usr/src/perl-${VERSION}
    3537
    3638# Cleanup
    3739#
    38 DIRS="perl-${VERSION} perl-${VERSION}.orig"
    39 for DIRECTORY in ${DIRS}; do
    40   cd /usr/src/${DIRECTORY}
    41   FILE_LIST=".patch"
    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
     40cd /usr/src/perl-${VERSION}
     41REMOVE=".patch AUTHORS Changes*"
     42for file in $REMOVE; do
     43  cd /usr/src/perl-${VERSION}
     44  rm -f ${file}
     45  cd /usr/src/perl-${VERSION}.orig
     46  rm -f ${file}
     47done
     48cd ..
    4849
    49   REMOVE="Changes Changes5.10 Changes5.8"
    50   for file in $REMOVE; do
    51     rm -f ${file}
    52     done
    53     cd ..
     50# Remove Directories
     51#
     52cd /usr/src/perl-${VERSION}
     53REMOVE="os2 vms win32"
     54for dir in $REMOVE; do
     55  cd /usr/src/perl-${VERSION}
     56  rm -rf ${dir}
     57  cd /usr/src/perl-${VERSION}.orig
     58  rm -rf ${dir}
    5459done
    55 
    56 # Cleanup Directory
    57 #
    58 for dir in $(find * -type d); do
    59   cd /usr/src/perl-${VERSION}
    60   for file in $(find . -name '*~'); do
    61     rm -f ${file}
    62   done
    63   for file in $(find . -name '*.orig'); do
    64     rm -f ${file}
    65   done
    66 done
    67 cd /usr/src/perl-${VERSION}
    68 rm -f *~ *.orig
    69 rm -f /usr/src/perl-${VERSION}.orig/md5.sum
     60cd ..
    7061
    7162# Create Patch
Note: See TracChangeset for help on using the changeset viewer.