Blame 0005-BuildEnv-override-set-C-noclobber-of-sourcing-env.patch

Paolo Bonzini 348500
From e4133f594621fa9e8936348f4d0aa4bbd2976d2f Mon Sep 17 00:00:00 2001
Paolo Bonzini 348500
From: Laszlo Ersek <lersek@redhat.com>
Paolo Bonzini 348500
Date: Sun, 8 Jul 2012 11:55:50 +0200
Paolo Bonzini 348500
Subject: BuildEnv: override "set -C" (noclobber) of sourcing env
Paolo Bonzini 348500
Paolo Bonzini 348500
The BuildEnv utility is sourced (executed by the user's interactive shell)
Paolo Bonzini 348500
when the user sets up the build session. Some users like to set -C
Paolo Bonzini 348500
(noclobber) for some additional safety in their shells, which trips up
Paolo Bonzini 348500
BuildEnv. Update the redirection operator so that it overrides noclobber.
Paolo Bonzini 348500
Paolo Bonzini 348500
Notes about the c9e5618 -> b9ffeab rebase:
Paolo Bonzini 348500
Paolo Bonzini 348500
- Adapted to new BaseTools feature (= out of tree modules).
Paolo Bonzini 348500
Paolo Bonzini 348500
Notes about the 20160608b-988715a -> 20170228-c325e41585e3 rebase:
Paolo Bonzini 348500
Paolo Bonzini 348500
- no changes
Paolo Bonzini 348500
Paolo Bonzini 348500
Notes about the 20170228-c325e41585e3 -> 20171011-92d07e48907f rebase:
Paolo Bonzini 348500
Paolo Bonzini 348500
- no changes
Paolo Bonzini 348500
Paolo Bonzini 348500
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Paolo Bonzini 348500
(cherry picked from commit 7df892b6f1c0dead5b177b3866e127b684cdc001)
Paolo Bonzini 348500
(cherry picked from commit 06d17db0523920d95fb18b3629f523dcd63d9499)
Paolo Bonzini 348500
---
Paolo Bonzini 348500
 BaseTools/BuildEnv | 2 +-
Paolo Bonzini 348500
 1 file changed, 1 insertion(+), 1 deletion(-)
Paolo Bonzini 348500
Paolo Bonzini 348500
diff --git a/BaseTools/BuildEnv b/BaseTools/BuildEnv
Paolo Bonzini 348500
index f748811..ff0c511 100755
Paolo Bonzini 348500
--- a/BaseTools/BuildEnv
Paolo Bonzini 348500
+++ b/BaseTools/BuildEnv
Paolo Bonzini 348500
@@ -90,7 +90,7 @@ StoreCurrentConfiguration() {
Paolo Bonzini 348500
   #
Paolo Bonzini 348500
   OUTPUT_FILE=$CONF_PATH/BuildEnv.sh
Paolo Bonzini 348500
   #echo Storing current configuration into $OUTPUT_FILE
Paolo Bonzini 348500
-  echo "# Auto-generated by ${BASH_SOURCE[0]}" > $OUTPUT_FILE
Paolo Bonzini 348500
+  echo "# Auto-generated by ${BASH_SOURCE[0]}" >| $OUTPUT_FILE
Paolo Bonzini 348500
   GenerateShellCodeToSetVariable WORKSPACE $OUTPUT_FILE
Paolo Bonzini 348500
   GenerateShellCodeToSetVariable EDK_TOOLS_PATH $OUTPUT_FILE
Paolo Bonzini 348500
   GenerateShellCodeToUpdatePath $OUTPUT_FILE
Paolo Bonzini 348500
-- 
Paolo Bonzini 348500
1.8.3.1
Paolo Bonzini 348500