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>
This commit is contained in:
Darren Hart 2011-05-13 10:33:39 -07:00 committed by Richard Purdie
parent 8a64780425
commit e39bb8cd12
1 changed files with 39 additions and 39 deletions

View File

@ -29,42 +29,42 @@ EOM
# Parse and validate arguments # Parse and validate arguments
while getopts "b:hi:m:o:p:r:s:" OPT; do while getopts "b:hi:m:o:p:r:s:" OPT; do
case $OPT in case $OPT in
b) b)
CONTRIB_BRANCH="$OPTARG" CONTRIB_BRANCH="$OPTARG"
;; ;;
h) h)
usage usage
exit 0 exit 0
;; ;;
i) i)
COMMIT_ID="$OPTARG" COMMIT_ID="$OPTARG"
;; ;;
m) m)
BODY="$OPTARG" BODY="$OPTARG"
if [ ! -e "$BODY" ]; then if [ ! -e "$BODY" ]; then
echo "ERROR: Body file does not exist" echo "ERROR: Body file does not exist"
exit 1 exit 1
fi fi
;; ;;
o) o)
ODIR="$OPTARG" ODIR="$OPTARG"
;; ;;
p) p)
PREFIX="$OPTARG" PREFIX="$OPTARG"
;; ;;
r) r)
RELATIVE_TO="$OPTARG" RELATIVE_TO="$OPTARG"
;; ;;
s) s)
SUBJECT="$OPTARG" SUBJECT="$OPTARG"
;; ;;
esac esac
done done
if [ -z "$CONTRIB_BRANCH" ]; then if [ -z "$CONTRIB_BRANCH" ]; then
usage usage
exit 1 exit 1
fi fi
@ -73,9 +73,9 @@ fi
WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH" WEB_URL="$WEB_URL_PREFIX$CONTRIB_BRANCH"
wget -q $WEB_URL -O /dev/null wget -q $WEB_URL -O /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "WARNING: Branch '$CONTRIB_BRANCH' was not found on the contrib git tree." echo "WARNING: Branch '$CONTRIB_BRANCH' was not found on the contrib git tree."
echo " Please check your contrib-branch parameter before sending." echo " Please check your contrib-branch parameter before sending."
echo "" echo ""
fi fi
if [ -e $ODIR ]; then if [ -e $ODIR ]; then
@ -107,13 +107,13 @@ EOM
# If the user specified a message body, insert it into the cover letter and # If the user specified a message body, insert it into the cover letter and
# remove the BLURB token. # remove the BLURB token.
if [ -n "$BODY" ]; then if [ -n "$BODY" ]; then
sed -i "/BLURB HERE/ r $BODY" "$CL" sed -i "/BLURB HERE/ r $BODY" "$CL"
sed -i "/BLURB HERE/ d" "$CL" sed -i "/BLURB HERE/ d" "$CL"
fi fi
# If the user specified a subject, replace the SUBJECT token with it. # If the user specified a subject, replace the SUBJECT token with it.
if [ -n "$SUBJECT" ]; then if [ -n "$SUBJECT" ]; then
sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL" sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL"
fi fi