Changeset 9676bac for scripts/patch/binutils-patch.sh
- Timestamp:
- Jan 20, 2009, 4:01:19 PM (17 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 550b73d
- Parents:
- d8b9d99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/binutils-patch.sh
rd8b9d99 r9676bac 9 9 # 10 10 if [ "${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 13 14 fi 14 15 … … 17 18 cd /usr/src 18 19 if ! [ -e binutils-${VERSION}.tar.bz2 ]; then 19 20 wget ftp://ftp.gnu.org/gnu/binutils/binutils-${VERSION}.tar.bz2 20 21 fi 21 22 … … 38 39 DIRS="binutils-${VERSION} binutils-${VERSION}.orig" 39 40 for DIRECTORY in ${DIRS}; do 40 cd /usr/src/${DIRECTORY}41 42 43 44 45 46 47 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 48 49 49 50 51 52 53 54 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 .. 55 56 done 56 57 … … 58 59 # 59 60 for dir in $(find * -type d); do 60 61 62 63 64 65 66 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 67 68 done 68 69 cd /usr/src/binutils-${VERSION} … … 89 90 diff -Naur binutils-${VERSION}.orig binutils-${VERSION} >> binutils-${VERSION}-branch_update-x.patch 90 91 echo "Created /usr/src/binutils-${VERSION}-branch_update-x.patch." 91
Note:
See TracChangeset
for help on using the changeset viewer.