Ignore:
Timestamp:
Jan 8, 2009, 3:56:42 PM (14 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/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
Note: See TracChangeset for help on using the changeset viewer.