Changeset c7ef534 for scripts


Ignore:
Timestamp:
Feb 16, 2009, 12:47:36 PM (11 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:
099bfc2
Parents:
61a83e8
Message:

Figure out what the last patch # is and grab the next #

Location:
scripts/patch
Files:
6 edited

Legend:

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

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.cwru.edu/pub/bash/bash-${VERSION}.tar.gz
    3131fi
     32
     33# Set Patch Number
     34#
     35cd /usr/src
     36wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     37PATCH_NUM=$(cat index.html | grep bash | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     38PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     39rm -f index.html
    3240
    3341# Cleanup Directory
     
    97105#
    98106cd /usr/src
    99 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-x.patch
    100 echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-x.patch
    101 echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-x.patch
    102 echo "Origin: Upstream" >> bash-${VERSION}-branch_update-x.patch
    103 echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-x.patch
    104 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-x.patch
     107echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Origin: Upstream" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    105113if [ -n "${SKIPPED}" ]; then
    106   echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-x.patch
    107   echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-x.patch
     114  echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     115  echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
    108116fi
    109 echo "" >> bash-${VERSION}-branch_update-x.patch
    110 diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-x.patch
    111 echo "Created /usr/src/bash-${VERSION}-branch_update-x.patch."
     117echo "" >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     118diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-${PATCH_NUM}.patch
     119echo "Created /usr/src/bash-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/binutils-patch.sh

    r61a83e8 rc7ef534  
    2323  wget ftp://ftp.gnu.org/gnu/binutils/binutils-${SOURCEVERSION}.tar.bz2
    2424fi
     25
     26# Set Patch Number
     27#
     28cd /usr/src
     29wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     30PATCH_NUM=$(cat index.html | grep binutils | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     31PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     32rm -f index.html
    2533
    2634# Cleanup Directory
     
    7078#
    7179cd /usr/src
    72 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-x.patch
    73 echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    74 echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    75 echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    76 echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    77 echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    78 echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-x.patch
    79 echo "" >> binutils-${SOURCEVERSION}-branch_update-x.patch
    80 diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-x.patch
    81 echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-x.patch."
     80echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     81echo "Date: `date +%m-%d-%Y`" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     82echo "Initial Package Version: ${SOURCEVERSION}" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     83echo "Origin: Upstream" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     84echo "Upstream Status: Applied" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     85echo "Description: This is a branch update for binutils-${SOURCEVERSION}, and should be" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     86echo "             rechecked periodically." >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     87echo "" >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     88diff -Naur binutils-${SOURCEVERSION}.orig binutils-${SOURCEVERSION} >> binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch
     89echo "Created /usr/src/binutils-${SOURCEVERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/gcc-patch.sh

    r61a83e8 rc7ef534  
    2020  wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
    2121fi
     22
     23# Set Patch Number
     24#
     25cd /usr/src
     26wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     27PATCH_NUM=$(cat index.html | grep gcc | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     28PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     29rm -f index.html
    2230
    2331# Cleanup Directory
     
    5765#
    5866cd /usr/src
    59 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-branch_update-x.patch
    60 echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-branch_update-x.patch
    61 echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-branch_update-x.patch
    62 echo "Origin: Upstream" >> gcc-${VERSION}-branch_update-x.patch
    63 echo "Upstream Status: Applied" >> gcc-${VERSION}-branch_update-x.patch
    64 echo "Description: This is a branch update for gcc-${VERSION}, and should be" >> gcc-${VERSION}-branch_update-x.patch
    65 echo "             rechecked periodically." >> gcc-${VERSION}-branch_update-x.patch
    66 echo "" >> gcc-${VERSION}-branch_update-x.patch
    67 diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-branch_update-x.patch
    68 echo "Created /usr/src/gcc-${VERSION}-branch_update-x.patch."
     67echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     68echo "Date: `date +%m-%d-%Y`" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     69echo "Initial Package Version: ${VERSION}" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     70echo "Origin: Upstream" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     71echo "Upstream Status: Applied" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     72echo "Description: This is a branch update for gcc-${VERSION}, and should be" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     73echo "             rechecked periodically." >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     74echo "" >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     75diff -Naur gcc-${VERSION}.orig gcc-${VERSION} >> gcc-${VERSION}-branch_update-${PATCH_NUM}.patch
     76echo "Created /usr/src/gcc-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/ncurses-patch.sh

    r61a83e8 rc7ef534  
    2929  wget ftp://invisible-island.net/ncurses/ncurses-${VERSION}.tar.gz
    3030fi
     31
     32# Set Patch Number
     33#
     34cd /usr/src
     35wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     36PATCH_NUM=$(cat index.html | grep ncurses | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     37PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     38rm -f index.html
    3139
    3240# Cleanup Directory
     
    94102#
    95103cd /usr/src
    96 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-x.patch
    97 echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-x.patch
    98 echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-x.patch
    99 echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-x.patch
    100 echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-x.patch
    101 echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-x.patch
    102 echo "             rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-x.patch
    103 echo "" >> ncurses-${VERSION}-branch_update-x.patch
    104 diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-x.patch
    105 echo "Created /usr/src/ncurses-${VERSION}-branch_update-x.patch."
     104echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     105echo "Date: `date +%m-%d-%Y`" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     106echo "Initial Package Version: ${VERSION}" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     107echo "Origin: Upstream" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     108echo "Upstream Status: Applied" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Description: This is a branch update for NCurses-${VERSION}, and should be" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "             rechecked periodically. This patch covers up to ${VERSION}-${LASTFILE}." >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "" >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     112diff -Naur ncurses-${VERSION}.orig ncurses-${VERSION} >> ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Created /usr/src/ncurses-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/readline-patch.sh

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.cwru.edu/pub/bash/readline-${VERSION}.tar.gz
    3131fi
     32
     33# Set Patch Number
     34#
     35cd /usr/src
     36wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     37PATCH_NUM=$(cat index.html | grep readline | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     38PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     39rm -f index.html
    3240
    3341# Cleanup Directory
     
    98106#
    99107cd /usr/src
    100 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-x.patch
    101 echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-x.patch
    102 echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-x.patch
    103 echo "Origin: Upstream" >> readline-${VERSION}-branch_update-x.patch
    104 echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-x.patch
    105 echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-x.patch
     108echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     109echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     110echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     111echo "Origin: Upstream" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     112echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     113echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    106114if [ -n "${SKIPPED}" ]; then
    107   echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-x.patch
    108   echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-x.patch
     115  echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     116  echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
    109117fi
    110 echo "" >> readline-${VERSION}-branch_update-x.patch
    111 diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-x.patch
    112 echo "Created /usr/src/readline-${VERSION}-branch_update-x.patch."
     118echo "" >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     119diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-${PATCH_NUM}.patch
     120echo "Created /usr/src/readline-${VERSION}-branch_update-${PATCH_NUM}.patch."
  • scripts/patch/vim-patch.sh

    r61a83e8 rc7ef534  
    3030  wget ftp://ftp.vim.org/pub/vim/unix/vim-${VERSION}.tar.bz2
    3131fi
     32
     33# Set Patch Number
     34#
     35cd /usr/src
     36wget http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/ --no-remove-listing
     37PATCH_NUM=$(cat index.html | grep vim | grep "${VERSION}" | grep branch_update | cut -f2 -d'"' | cut -f1 -d'"'| cut -f4 -d- | cut -f1 -d. | tail -n 1)
     38PATCH_NUM=$(expr ${PATCH_NUM} + 1)
     39rm -f index.html
    3240
    3341# Cleanup Directory
     
    7684    fi
    7785   fi
    78    COUNT=`expr ${COUNT} + 1`
     86   COUNT=$(expr ${COUNT} + 1)
    7987done
    8088
     
    96104#
    97105cd /usr/src
    98 echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-x.patch
    99 echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-x.patch
    100 echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-x.patch
    101 echo "Origin: Upstream" >> vim-${VERSION}-branch_update-x.patch
    102 echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-x.patch
    103 echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-x.patch
     106echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     107echo "Date: `date +%m-%d-%Y`" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     108echo "Initial Package Version: ${VERSION}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     109echo "Origin: Upstream" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     110echo "Upstream Status: Applied" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     111echo "Description: Contains all upstream patches up to ${VERSION}.${FILES}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
    104112if [ -n "${SKIPPED}" ]; then
    105   echo "             The following patches were skipped" >> vim-${VERSION}-branch_update-x.patch
    106   echo "            ${SKIPPED}" >> vim-${VERSION}-branch_update-x.patch
     113  echo "             The following patches were skipped" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     114  echo "            ${SKIPPED}" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
    107115fi
    108 echo "" >> vim-${VERSION}-branch_update-x.patch
    109 diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-x.patch
    110 echo "Created /usr/src/vim-${VERSION}-branch_update-x.patch."
     116echo "" >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     117diff -Naur vim${SERIES}.orig vim${SERIES} >> vim-${VERSION}-branch_update-$(PATCH_NUM}.patch
     118echo "Created /usr/src/vim-${VERSION}-branch_update-$(PATCH_NUM}.patch."
Note: See TracChangeset for help on using the changeset viewer.