summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-05-13 17:33:39 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-19 22:40:37 (GMT)
commite39bb8cd12b80c08605e668049cf682e79ec9ecd (patch)
tree800458e15f8eb667d1644a3fcda701047f22e6e3
parent8a64780425a1a2ac312d1a92b374e8e75df0eed8 (diff)
downloadpoky-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>
-rwxr-xr-xscripts/create-pull-request78
1 files changed, 39 insertions, 39 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 658b9c2..b911a64 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
31while getopts "b:hi:m:o:p:r:s:" OPT; do 31while 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
63done 63done
64 64
65if [ -z "$CONTRIB_BRANCH" ]; then 65if [ -z "$CONTRIB_BRANCH" ]; then
66 usage 66 usage
67 exit 1 67 exit 1
68fi 68fi
69 69
70 70
@@ -73,9 +73,9 @@ fi
73WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH" 73WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH"
74wget -q $WEB_URL -O /dev/null 74wget -q $WEB_URL -O /dev/null
75if [ $? -ne 0 ]; then 75if [ $? -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 ""
79fi 79fi
80 80
81if [ -e $ODIR ]; then 81if [ -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.
109if [ -n "$BODY" ]; then 109if [ -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"
112fi 112fi
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.
115if [ -n "$SUBJECT" ]; then 115if [ -n "$SUBJECT" ]; then
116 sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL" 116 sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL"
117fi 117fi
118 118
119 119