Ignore:
Timestamp:
Jan 8, 2009, 3:56:42 PM (15 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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.