From 2b1f227936940ba5a1e8d3edc6561610bf8d9f64 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 25 Feb 2020 16:15:11 +0100 Subject: [PATCH] Autogenerate environment.fish script for SDK This commit tweaks `install-sgx-sdk.bin.tmpl` to auto-generate a version of the `environment` script for fish-style shells in addition to bash. The generated script is simply called `environment.fish`. Signed-off-by: Jakub Konka --- linux/installer/bin/install-sgx-sdk.bin.tmpl | 23 +++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/linux/installer/bin/install-sgx-sdk.bin.tmpl b/linux/installer/bin/install-sgx-sdk.bin.tmpl index 746084a92..2c8e53077 100755 --- a/linux/installer/bin/install-sgx-sdk.bin.tmpl +++ b/linux/installer/bin/install-sgx-sdk.bin.tmpl @@ -191,12 +191,33 @@ fi EOF } +generate_environment_script_fish() +{ + cat > ${SGX_PACKAGES_PATH}/${SDK_PKG_NAME}/environment.fish <