aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/send-pull-request
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-07 21:19:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-09 17:46:33 +0000
commit8277ee93e1f3debb4f0f9cc8ca87d9d361b0acdf (patch)
treee8665ff1754b98277e8414398810e746e61d313e /scripts/send-pull-request
parentca5ad873db40e9caffcdc6f69bfc04b9b2141945 (diff)
downloadopenembedded-core-contrib-8277ee93e1f3debb4f0f9cc8ca87d9d361b0acdf.tar.gz
scripts/send-pull-request: allow sending of patches without a cover letter
(From OE-Core rev: 326ef69d1296cd35a86d1eaee0741e6fc956af52) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/send-pull-request')
-rwxr-xr-xscripts/send-pull-request21
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request
index be130096c1..8d51ce2ec1 100755
--- a/scripts/send-pull-request
+++ b/scripts/send-pull-request
@@ -108,15 +108,18 @@ fi
# Verify the cover letter is complete and free of tokens
-CL="$PDIR/0000-cover-letter.patch"
-for TOKEN in SUBJECT BLURB; do
- grep -q "*** $TOKEN HERE ***" "$CL"
- if [ $? -eq 0 ]; then
- echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')."
- exit 1
- fi
-done
-
+if [ -e $PDIR/0000-cover-letter.patch ]; then
+ CL="$PDIR/0000-cover-letter.patch"
+ for TOKEN in SUBJECT BLURB; do
+ grep -q "*** $TOKEN HERE ***" "$CL"
+ if [ $? -eq 0 ]; then
+ echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')."
+ exit 1
+ fi
+ done
+else
+ echo "WARNING: No cover letter will be send."
+fi
# Harvest emails from the generated patches and populate AUTO_CC.
if [ $AUTO_CL -eq 1 ]; then