From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by mx.groups.io with SMTP id smtpd.web12.415.1600983490342945700 for ; Thu, 24 Sep 2020 14:38:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=yhsG+DGC; spf=pass (domain: nuviainc.com, ip: 209.85.216.68, mailfrom: rebecca@nuviainc.com) Received: by mail-pj1-f68.google.com with SMTP id kk9so547645pjb.2 for ; Thu, 24 Sep 2020 14:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WP/eCV5+5foaN3Et1y7jX2B0sKG9oD/9c6q6qvVDhi8=; b=yhsG+DGCayzdSXar0SwJsq2xX+mLYuWskIRSb4eqEvfku9a/3pU27ojUBVSB7+4VF5 cUA9klLVpno6z2WV3yUuVT5zasc+e4Uo/8QqKa2Li17KmFHuKg7uO9CNIIfNzp6Ild0p uVzag8wprzTy3s7VLFIBMXATrZutFFHTbp6bBUfOKJwJuDx8XsF5WeD1KUYo2IZ9D+IE 6O1m4S98AjRjFGY4Ojsj9XMnYl2V7zu3lLiuxcgDQm8VnZagaq6ql5g02VjGhVVUSREy x0+eoEWYJr3JLSlikiI3xOkFG6VmAIXyEcJRcmCAHB20AYiH8TmtvmqtkYIv+kpYlSkx 2hog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WP/eCV5+5foaN3Et1y7jX2B0sKG9oD/9c6q6qvVDhi8=; b=O/CTcpHKaCC37YI4D/iwT+7eH16fyMGvoqr72btY94BaIGn+E14Itgxm1zFxTY/5sN oLa457ArXGT1NdDvUbKj705oD5IJRzV76NiqmZdSdIPcw55/w/z8T6Au9YdzWIxz1rgZ Tyxxyas+NbJXVdW94QH++Eg8lOBcZl4PSt6Kd+2xTaYV6Pjz2Tl4HE+9DCtxQBoEZ6dO JvD6+kwya6QOMCPsjDlaa48BLFQqJOO/7fL9ynGUM7zsXqDRvD2Cn2hs6F8D84gFs63x qeAgRQYH8+mC4v1x2i2vwfm+STAzc32YtoAhT9VHjq1FNMn48siwTDqym9neJrv0v4vD smdQ== X-Gm-Message-State: AOAM530hExn3fm4/cP+kBs2Iazbt9AOVsdwEXOoXZr1hrzuRSg9AkkCe 1wUaWSfzc7hBm5/N1d3jlK5nOq4oOnCLkZ0PAvRvj0VQy/6X8/FDWhTA6LffXIExa25N/9ddTdY aBApXSBTE99QEfyXw/NWbcBBdnwwfYnc8dHlzcxIT0LpaHc4lQPpSrEfvjDVvCwQMYk6PUoI5 X-Google-Smtp-Source: ABdhPJyC1ybJx0mBczU6fP/dE4d+AIRSH3cLu1kuul74ww/jcsWRmP9cxbUZSgzvPTwuC69mKRzZ/Q== X-Received: by 2002:a17:90b:1918:: with SMTP id mp24mr859243pjb.110.1600983489403; Thu, 24 Sep 2020 14:38:09 -0700 (PDT) Return-Path: Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id j144sm400641pfd.106.2020.09.24.14.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 14:38:08 -0700 (PDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Eric Jin , G Edhaya Chandran , Samer El-Haj-Mahmoud , Rebecca Cran Subject: [edk2-test] [PATCH 3/3] uefi-sct/SctPkg: Fix some indentation issues in build.sh Date: Thu, 24 Sep 2020 15:37:42 -0600 Message-Id: <20200924213742.25278-4-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200924213742.25278-1-rebecca@nuviainc.com> References: <20200924213742.25278-1-rebecca@nuviainc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit build.sh contains a mixture of tabs and spaces, with differing numbers of spaces used for indents. Update it so any single block only uses one style of indentation. Signed-off-by: Rebecca Cran --- uefi-sct/SctPkg/build.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh index be610debcf3c..37667711f3a5 100755 --- a/uefi-sct/SctPkg/build.sh +++ b/uefi-sct/SctPkg/build.sh @@ -56,9 +56,9 @@ function get_gcc_version { gcc_version=$($1 -dumpversion) - if [ ${gcc_version%%.*} -gt 5 ]; then - gcc_version=5 - fi + if [ ${gcc_version%%.*} -gt 5 ]; then + gcc_version=5 + fi case $gcc_version in 4.6*|4.7*|4.8*|4.9*|5*) @@ -152,10 +152,9 @@ case `uname` in ;; GCC* | gcc*) - set_cross_compile - CROSS_COMPILE="$TEMP_CROSS_COMPILE" - export TARGET_TOOLS=`get_gcc_version "$CROSS_COMPILE"gcc` - + set_cross_compile + CROSS_COMPILE="$TEMP_CROSS_COMPILE" + export TARGET_TOOLS=`get_gcc_version "$CROSS_COMPILE"gcc` ;; *) @@ -224,7 +223,7 @@ then status=$? if test $status -ne 0 then - echo Error while building EDK tools + echo Error while building EDK tools exit -1 fi else @@ -239,7 +238,7 @@ make -C SctPkg/Tools/Source/GenBin status=$? if test $status -ne 0 then -echo Error while building GenBin + echo Error while building GenBin exit -1 fi @@ -258,8 +257,8 @@ build -p SctPkg/UEFI/UEFI_SCT.dsc -a $SCT_TARGET_ARCH -t $TARGET_TOOLS -b $SCT_B status=$? if test $status -ne 0 then -echo Could not build the UEFI SCT package - exit -1 + echo Could not build the UEFI SCT package + exit -1 fi build -p SctPkg/UEFI/IHV_SCT.dsc -a $SCT_TARGET_ARCH -t $TARGET_TOOLS -b $SCT_BUILD $3 $4 $5 $6 $7 $8 $9 @@ -268,8 +267,8 @@ build -p SctPkg/UEFI/IHV_SCT.dsc -a $SCT_TARGET_ARCH -t $TARGET_TOOLS -b $SCT_BU status=$? if test $status -ne 0 then -echo Could not build the IHV SCT package - exit -1 + echo Could not build the IHV SCT package + exit -1 fi @@ -299,8 +298,8 @@ pwd status=$? if test $status -ne 0 then -echo Could not generate UEFI SCT binary - exit -1 + echo Could not generate UEFI SCT binary + exit -1 else echo The SCT binary "SctPackage${SCT_TARGET_ARCH}" is located at "$EFI_SOURCE/Build/UefiSct/${SCT_BUILD}_${TARGET_TOOLS}" fi @@ -315,8 +314,8 @@ pwd status=$? if test $status -ne 0 then -echo Could not generate IHV SCT binary - exit -1 + echo Could not generate IHV SCT binary + exit -1 else echo The IHV binary "SctPackage${SCT_TARGET_ARCH}" is located at "$EFI_SOURCE/Build/IhvSct/${SCT_BUILD}_${TARGET_TOOLS}" fi -- 2.26.2