diff options
| author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-10 11:27:26 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-10 11:27:26 -0300 |
| commit | cafc731a90a72a074c05cf2d7e4a67f3fa596b76 (patch) | |
| tree | 251ff3c0ea4e48a563439d6e143a081ca7afe4fc /mailimport | |
| parent | 463d9d496cf51caabf90b3f64ef602768600bbd1 (diff) | |
| parent | 18af961f48808a7aaad697abc64a3c6ee405aef1 (diff) | |
| download | mediapointer-dvb-s2-cafc731a90a72a074c05cf2d7e4a67f3fa596b76.tar.gz mediapointer-dvb-s2-cafc731a90a72a074c05cf2d7e4a67f3fa596b76.tar.bz2 | |
merge: http://linuxtv.org/hg/~mkrufky/tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'mailimport')
| -rwxr-xr-x | mailimport | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mailimport b/mailimport index 614ae6519..7b233932e 100755 --- a/mailimport +++ b/mailimport @@ -18,6 +18,25 @@ head=v4l/scripts/hghead.pl +edit_patch() +{ + next=$1 + + if [ "`grep 'has been added to the -mm tree. Its filename is' $next`" != "" ]; then + newfile="$TMPDIR/next2_$$" + + echo Processing -mm file $next + + perl -e 'while (<>) { if (m/Date:/) { print $_; }; + if (m/^------------------------------------------------------/) { + print <>; exit; + }}' $next >$newfile; + mv $tmp/$newfile $next; + fi + echo Editing $next + $EDITOR $next +} + #################################################################### # Tries to apply a patch at the tree @@ -44,14 +63,14 @@ apply_patch () { fi echo "** Edit file $next" sleep 1 - $EDITOR $next + edit_patch $next else echo "Patch applied OK against $pdir" cont=0 fi done - $EDITOR $next + edit_patch $next unset cont until [ "$cont" == "0" ]; do |
