/[linux-patches]/genpatches-2.6-misc/scripts/gpmultipatch
Gentoo

Contents of /genpatches-2.6-misc/scripts/gpmultipatch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (show annotations) (download)
Sun Jun 12 14:16:46 2005 UTC (9 years, 4 months ago) by dsd
File size: 473 byte(s)
script and doc updates
1 #!/bin/bash
2
3 . ~/.genpatchesrc
4
5 PATCHES="$(ls ${GENPATCHES_TRUNK}/2.6.$1/*.patch)"
6 for i in ${PATCHES} ; do
7 short="${i##*/}"
8 code="${short:0:4}"
9
10 if [[ $code -lt $2 ]] ; then
11 continue
12 fi
13
14 echo ">>> Dry run: ${short}"
15 if ! patch --dry-run -p1 -i ${i} >/dev/null 2>&1 ; then
16 echo ">>> Patch ${short} fails to dry run"
17 exit
18 fi
19
20 echo ">>> Apply: ${short}"
21 if ! patch -p1 -i ${i} ; then
22 echo ">>> Patch ${short} failed to apply"
23 exit
24 fi
25 done
26 echo ">>> Done"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20