Changeset 550b73d
- Timestamp:
- Jan 20, 2009, 4:31:32 PM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 42622bd
- Parents:
- 9676bac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/perl-patch.sh
r9676bac r550b73d 32 32 cd /usr/src 33 33 FIXEDVERSION=$(echo ${VERSION} | sed -e 's ..$ ') 34 rsync -avz rsync://perl5.git.perl.org/APC/perl-${FIXEDVERSION}.x perl-${VERSION} 34 rsync -avz rsync://perl5.git.perl.org/APC/perl-${FIXEDVERSION}.x tmp 35 cd tmp 36 mv perl-${FIXEDVERSION}.x /usr/src/perl-${VERSION} 35 37 36 38 # Cleanup 37 39 # 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 40 cd /usr/src/perl-${VERSION} 41 REMOVE=".patch AUTHORS Changes*" 42 for 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} 47 done 48 cd .. 48 49 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 # 52 cd /usr/src/perl-${VERSION} 53 REMOVE="os2 vms win32" 54 for 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} 54 59 done 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 60 cd .. 70 61 71 62 # Create Patch
Note:
See TracChangeset
for help on using the changeset viewer.