Changeset c0d5090


Ignore:
Timestamp:
Jan 8, 2009, 3:56:42 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:
d57287f4
Parents:
318408a
Message:

Updated Patch Creation Scripts

Location:
scripts/patch
Files:
5 edited

Legend:

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

    r318408a rc0d5090  
    8080# Cleanup Directory
    8181#
    82 cd /usr/src
    83 cd bash-${VERSION}
    84 for file in $(find * -name *~); do
    85         rm -f ${file}
    86 done
    87 for file in $(find * -name *.orig); do
    88         rm -f ${file}
     82for dir in $(find * -type d); do
     83        cd /usr/src/bash-${VERSION}/${dir}
     84        for file in $(find * -name *~); do
     85                rm -f ${file}
     86        done
     87        for file in $(find * -name *.orig); do
     88                rm -f ${file}
     89        done
    8990done
    9091
     
    9293#
    9394cd /usr/src
    94 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-fixes-x.patch
    95 echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-fixes-x.patch
    96 echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-fixes-x.patch
    97 echo "Origin: Upstream" >> bash-${VERSION}-fixes-x.patch
    98 echo "Upstream Status: Applied" >> bash-${VERSION}-fixes-x.patch
    99 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-fixes-x.patch
     95echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-x.patch
     96echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-x.patch
     97echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-x.patch
     98echo "Origin: Upstream" >> bash-${VERSION}-branch_update-x.patch
     99echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-x.patch
     100echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-x.patch
    100101if [ -n "${SKIPPED}" ]; then
    101         echo "             The following patches were skipped" >> bash-${VERSION}-fixes-x.patch
    102         echo "            ${SKIPPED}" >> bash-${VERSION}-fixes-x.patch
     102        echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-x.patch
     103        echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-x.patch
    103104fi
    104 echo "" >> bash-${VERSION}-fixes-x.patch
    105 diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-fixes-x.patch
    106 echo "Created /usr/src/bash-${VERSION}-fixes-x.patch."
     105echo "" >> bash-${VERSION}-branch_update-x.patch
     106diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-x.patch
     107echo "Created /usr/src/bash-${VERSION}-branch_update-x.patch."
    107108
  • scripts/patch/binutils-patch.sh

    r318408a rc0d5090  
    5555done
    5656
     57# Cleanup Directory
     58#
     59for 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
     67done
     68
    5769rm -f /usr/src/binutils-${VERSION}.orig/md5.sum
    5870
  • scripts/patch/ncurses-patch.sh

    r318408a rc0d5090  
    7676# Cleanup Directory
    7777#
    78 cd /usr/src
    79 cd ncurses-${VERSION}
    80 for file in $(find * -name *~); do
    81         rm -f ${file}
    82 done
    83 for file in $(find * -name *.orig); do
    84         rm -f ${file}
     78# Cleanup Directory
     79#
     80for dir in $(find * -type d); do
     81        cd /usr/src/ncurses-${VERSION}/${dir}
     82        for file in $(find * -name *~); do
     83                rm -f ${file}
     84        done
     85        for file in $(find * -name *.orig); do
     86                rm -f ${file}
     87        done
    8588done
    8689
  • scripts/patch/readline-patch.sh

    r318408a rc0d5090  
    8080# Cleanup Directory
    8181#
    82 cd /usr/src
    83 cd readline-${VERSION}
    84 for file in $(find * -name *~); do
    85         rm -f ${file}
    86 done
    87 for file in $(find * -name *.orig); do
    88         rm -f ${file}
     82# Cleanup Directory
     83#
     84for dir in $(find * -type d); do
     85        cd /usr/src/readline-${VERSION}/${dir}
     86        for file in $(find * -name *~); do
     87                rm -f ${file}
     88        done
     89        for file in $(find * -name *.orig); do
     90                rm -f ${file}
     91        done
    8992done
    9093
     
    9295#
    9396cd /usr/src
    94 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-fixes-x.patch
    95 echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-fixes-x.patch
    96 echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-fixes-x.patch
    97 echo "Origin: Upstream" >> readline-${VERSION}-fixes-x.patch
    98 echo "Upstream Status: Applied" >> readline-${VERSION}-fixes-x.patch
    99 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-fixes-x.patch
     97echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-x.patch
     98echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-x.patch
     99echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-x.patch
     100echo "Origin: Upstream" >> readline-${VERSION}-branch_update-x.patch
     101echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-x.patch
     102echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-x.patch
    100103if [ -n "${SKIPPED}" ]; then
    101         echo "            Thee following patches were skipped" >> readline-${VERSION}-fixes-x.patch
    102         echo "            ${SKIPPED}" >> readline-${VERSION}-fixes-x.patch
     104        echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-x.patch
     105        echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-x.patch
    103106fi
    104 echo "" >> readline-${VERSION}-fixes-x.patch
    105 diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-fixes-x.patch
    106 echo "Created /usr/src/readline-${VERSION}-fixes-x.patch."
     107echo "" >> readline-${VERSION}-branch_update-x.patch
     108diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-x.patch
     109echo "Created /usr/src/readline-${VERSION}-branch_update-x.patch."
    107110
  • scripts/patch/vim-patch.sh

    r318408a rc0d5090  
    8080# Cleanup Directory
    8181#
    82 cd /usr/src
    83 cd vim${SERIES}
    84 for file in $(find * -name *~); do
    85         rm -f $file
    86 done
    87 for file in $(find * -name *.orig); do
    88         rm -f $file
     82# Cleanup Directory
     83#
     84for dir in $(find * -type d); do
     85        cd /usr/src/vim${SERIES}/${dir}
     86        for file in $(find * -name *~); do
     87                rm -f ${file}
     88        done
     89        for file in $(find * -name *.orig); do
     90                rm -f ${file}
     91        done
    8992done
    9093
Note: See TracChangeset for help on using the changeset viewer.