diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-02 14:23:39 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-02 14:23:39 -0300 |
commit | c28f4567282fa2d2b41a8c30c3c89b95e637b7d0 (patch) | |
tree | 72b04ce2d1f9c519bd723c2457e07a420cf61bfc | |
parent | 174aac0a9961ce8a8d63ca42dbb272241531723a (diff) | |
download | mediapointer-dvb-s2-c28f4567282fa2d2b41a8c30c3c89b95e637b7d0.tar.gz mediapointer-dvb-s2-c28f4567282fa2d2b41a8c30c3c89b95e637b7d0.tar.bz2 |
Improve mailimport to auto-generate CARDLIST.*
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rwxr-xr-x | mailimport | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mailimport b/mailimport index 2bcd2a09f..80584af00 100755 --- a/mailimport +++ b/mailimport @@ -108,16 +108,18 @@ apply_patch () { echo hg -m "`cat $TMP2|grep -v "^#"`" qnew $name hg qnew -m "`cat $TMP2|grep -v "^#"`" $name + make cardlist make whitespace hg qrefresh else patch -s -t -p1 -l -N -d $pdir -i $next - make whitespace - if [ "$?" != "0" ]; then echo "*** ERROR at: patch -s -t -p1 -l -N -d $pdir -i $next" exit fi + make cardlist + make whitespace + cur=`pwd` cd $pdir hg addremove `diffstat -p1 -l $next` @@ -126,7 +128,8 @@ apply_patch () { exit fi # Commit the changed files - hg commit -u "$committer" -m "`cat $TMP2|grep -v "^#"`" `diffstat -p1 -l $next` + hg commit -u "$committer" -m "`cat $TMP2|grep -v "^#"`" `diffstat -p1 -l $next` linux/Documentation/video4linux/CARDLIST.* + if [ "$?" != "0" ]; then echo "*** ERROR at hg commit" cd $cur |