summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2016-03-11 13:16:51 -0800
committerHao Wu <hao.a.wu@intel.com>2016-03-14 08:44:55 +0800
commit1634b7320f6d262687d47f1c584a70bbcb6bc319 (patch)
tree6dd264251f9bc9a2a61d4ea2c30a549811277f16
parent508d580940fb49bad82598e6e810e1056d87544e (diff)
downloadedk2-platforms-1634b7320f6d262687d47f1c584a70bbcb6bc319.tar.xz
CryptoPkg/OpensslLib: Convert saved opensslconf.h to DOS line endings
Until we fix the git repository to store line endings properly and then just check them out in the appropriate form for the platform, let's make process_files.sh convert the opensslconf.h to DOS line endings when it creates it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Reviewed-by: Qin Long <qin.long@intel.com> (cherry picked from commit f6326d1fba1eb89a21e9831c9d716e5f3f970084)
-rwxr-xr-xCryptoPkg/Library/OpensslLib/process_files.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/CryptoPkg/Library/OpensslLib/process_files.sh b/CryptoPkg/Library/OpensslLib/process_files.sh
index bb33c8ae3f..885adf3a2f 100755
--- a/CryptoPkg/Library/OpensslLib/process_files.sh
+++ b/CryptoPkg/Library/OpensslLib/process_files.sh
@@ -93,5 +93,6 @@ function filelist ()
filelist < "${OPENSSL_PATH}/MINFO" | sed -n -f - -i OpensslLib.inf
# We can tell Windows users to put this back manually if they can't run
-# Configure.
-cp "${OPENSSL_PATH}/crypto/opensslconf.h" .
+# Configure. For now, until the git repository is fixed to store things
+# sanely, also convert to DOS line-endings
+unix2dos -n "${OPENSSL_PATH}/crypto/opensslconf.h" opensslconf.h