diff options
| author | Darren Hart <dvhart@linux.intel.com> | 2011-05-13 10:33:39 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-19 23:40:37 +0100 |
| commit | e39bb8cd12b80c08605e668049cf682e79ec9ecd (patch) | |
| tree | 800458e15f8eb667d1644a3fcda701047f22e6e3 /scripts | |
| parent | 8a64780425a1a2ac312d1a92b374e8e75df0eed8 (diff) | |
| download | poky-e39bb8cd12b80c08605e668049cf682e79ec9ecd.tar.gz | |
create-pull-request: whitespace cleanup
Indent with tabs, not spaces, to be consistent with other bash scripts.
(From OE-Core rev: bf78a66f3adfc720ee84ff457143722f3752e8c5)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/create-pull-request | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 658b9c2b56..b911a64f33 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request | |||
| @@ -29,42 +29,42 @@ EOM | |||
| 29 | 29 | ||
| 30 | # Parse and validate arguments | 30 | # Parse and validate arguments |
| 31 | while getopts "b:hi:m:o:p:r:s:" OPT; do | 31 | while getopts "b:hi:m:o:p:r:s:" OPT; do |
| 32 | case $OPT in | 32 | case $OPT in |
| 33 | b) | 33 | b) |
| 34 | CONTRIB_BRANCH="$OPTARG" | 34 | CONTRIB_BRANCH="$OPTARG" |
| 35 | ;; | 35 | ;; |
| 36 | h) | 36 | h) |
| 37 | usage | 37 | usage |
| 38 | exit 0 | 38 | exit 0 |
| 39 | ;; | 39 | ;; |
| 40 | i) | 40 | i) |
| 41 | COMMIT_ID="$OPTARG" | 41 | COMMIT_ID="$OPTARG" |
| 42 | ;; | 42 | ;; |
| 43 | m) | 43 | m) |
| 44 | BODY="$OPTARG" | 44 | BODY="$OPTARG" |
| 45 | if [ ! -e "$BODY" ]; then | 45 | if [ ! -e "$BODY" ]; then |
| 46 | echo "ERROR: Body file does not exist" | 46 | echo "ERROR: Body file does not exist" |
| 47 | exit 1 | 47 | exit 1 |
| 48 | fi | 48 | fi |
| 49 | ;; | 49 | ;; |
| 50 | o) | 50 | o) |
| 51 | ODIR="$OPTARG" | 51 | ODIR="$OPTARG" |
| 52 | ;; | 52 | ;; |
| 53 | p) | 53 | p) |
| 54 | PREFIX="$OPTARG" | 54 | PREFIX="$OPTARG" |
| 55 | ;; | 55 | ;; |
| 56 | r) | 56 | r) |
| 57 | RELATIVE_TO="$OPTARG" | 57 | RELATIVE_TO="$OPTARG" |
| 58 | ;; | 58 | ;; |
| 59 | s) | 59 | s) |
| 60 | SUBJECT="$OPTARG" | 60 | SUBJECT="$OPTARG" |
| 61 | ;; | 61 | ;; |
| 62 | esac | 62 | esac |
| 63 | done | 63 | done |
| 64 | 64 | ||
| 65 | if [ -z "$CONTRIB_BRANCH" ]; then | 65 | if [ -z "$CONTRIB_BRANCH" ]; then |
| 66 | usage | 66 | usage |
| 67 | exit 1 | 67 | exit 1 |
| 68 | fi | 68 | fi |
| 69 | 69 | ||
| 70 | 70 | ||
| @@ -73,9 +73,9 @@ fi | |||
| 73 | WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH" | 73 | WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH" |
| 74 | wget -q $WEB_URL -O /dev/null | 74 | wget -q $WEB_URL -O /dev/null |
| 75 | if [ $? -ne 0 ]; then | 75 | if [ $? -ne 0 ]; then |
| 76 | echo "WARNING: Branch '$CONTRIB_BRANCH' was not found on the contrib git tree." | 76 | echo "WARNING: Branch '$CONTRIB_BRANCH' was not found on the contrib git tree." |
| 77 | echo " Please check your contrib-branch parameter before sending." | 77 | echo " Please check your contrib-branch parameter before sending." |
| 78 | echo "" | 78 | echo "" |
| 79 | fi | 79 | fi |
| 80 | 80 | ||
| 81 | if [ -e $ODIR ]; then | 81 | if [ -e $ODIR ]; then |
| @@ -107,13 +107,13 @@ EOM | |||
| 107 | # If the user specified a message body, insert it into the cover letter and | 107 | # If the user specified a message body, insert it into the cover letter and |
| 108 | # remove the BLURB token. | 108 | # remove the BLURB token. |
| 109 | if [ -n "$BODY" ]; then | 109 | if [ -n "$BODY" ]; then |
| 110 | sed -i "/BLURB HERE/ r $BODY" "$CL" | 110 | sed -i "/BLURB HERE/ r $BODY" "$CL" |
| 111 | sed -i "/BLURB HERE/ d" "$CL" | 111 | sed -i "/BLURB HERE/ d" "$CL" |
| 112 | fi | 112 | fi |
| 113 | 113 | ||
| 114 | # If the user specified a subject, replace the SUBJECT token with it. | 114 | # If the user specified a subject, replace the SUBJECT token with it. |
| 115 | if [ -n "$SUBJECT" ]; then | 115 | if [ -n "$SUBJECT" ]; then |
| 116 | sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL" | 116 | sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL" |
| 117 | fi | 117 | fi |
| 118 | 118 | ||
| 119 | 119 | ||
