From 805216592b629a15353b447873dc2fba8156520f Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 12 Nov 2020 01:05:20 -0800 Subject: [PATCH] remove the env variable exporting stuff that does not currently work --- bin/kaleidoscope-builder | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 27a62236..b934bac2 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -469,35 +469,6 @@ if [ "${ARCH}" = "virtual" ]; then COMPILER_PREFIX="" fi -## Parse the command-line -## - anything that has a =, is an env var -## - from the remaining stuff, the first one is the Library/Sketch -## - everything else are commands -## -## - if there is only one argument, that's a command - -cmds="" - -## Export vars -for i in $(seq 1 $#); do - v="$1" - shift - - case "${v}" in - *=*) - # Exporting an expansion is *precisely* what we want here. - # shellcheck disable=SC2086,SC2163 - export ${v} - ;; - *) - cmds="${cmds} ${v}" - ;; - esac -done - -# Word splitting is desired here. -# shellcheck disable=SC2086 -set -- ${cmds} if [ $# -eq 2 ]; then SKETCH="$1"