#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b57c586f6bcb171143af3035ec65d5adf89e3d6b name=$(basename $0) # e.g. hello-xshar.xshar default_dir=/tmp/$name.$$ # User can override this, and then _build/oils.sh can use SKIP_REBUILD to make # it faster. Multiple runs without compiling. export XSHAR_DIR=${XSHAR_DIR:-$default_dir} change_dir() { mkdir -p "$XSHAR_DIR" cd "$XSHAR_DIR" } extract_data() { base64 -d <<'XSHAR_DATA' | tar -x -z H4sIAApXtWYAA+08a3PbRpL5zF8xK8UF0CFBPe2UNrRPkR/RnSypLGV9KZ2CAoGhCAsEcBhAEncr +e3X3TODN0lpE3uvajFVNslBT09Pv6ZnuqGFcytGC/jPnjt+aMWLb/78tgXt5f4+fm6/3N+m39sv X9InfNva2nv5zfbei/39nf3d3W3o397e3d7/hm19AVoaLROpkzD2Nab6/9g2/zLKRDKa+OGIh3cs XqSzKNzpbWxs9MpawYbsPQ954qScHX33HZsm0Zz9AgDs+KPV6/0suGAIbznCCyzGPvlBwNKZL9iE s4TfJ36a8pA5EkpixW+vaSbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH7yaZH3jW DSBXj2kCJEPC4Df9aBolcydFKqbzVD52o4TrxzxJokR2e07q2IET3uhnn7+XD+YLN45153wR+BPZ j7Pq7jRxQoFzNR8BnTYgUPSni9gvpjjxRUrs8PiUncW4ZmH2D3oM2ibC8gNm9tnwFYviNHYSwS0J dY7fE4Lb+MiBh6FgTohQ8JARZML8EBQ9dLm10SPImI3b8Zh9+dxyPM+WOExjOAyjYZzwNF0MSSzD OQdN8YQxIOhK87hIx4aEtqUQV0A7JN2xIVIQhT11AsHbkU6dLEjHl0nGWx7PeBCPjU8zmAcWm0bI aamukg6pTMhtTUq/pzh7FIVpEgXsnHQfNAI4lWQukCM0CAiTzcLI46TfrfyJF0M/9NPh6QqOLGwE scP1bAACVnLhHbJpKRtyU1VLsuW8NlgkqH/C/zfzEzBYfseTBZv6PPAK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zNRLvdGD08T4sbWdXnkVpKrxKfVt8ub7/Vb4Qp3n2Trl1ylC2 MK1c77GSdZuMSqA0PlkIhUi13pZVnfqFf2PJldjypYsWzTcpq1ZgoeeY/xrISi0eZnO6xitQyqqc fkVCPpYPbS1xVIMyI6vmXKWnz/5RvE1YFLHImbXulZLALSpZRfhbVRbF65sNMRTb6SoJvKU/ABJL WHWtKhgIAy8eqlNv+qEbZB5nG5WzgzXbqC5RJf58mbOzVC6xVByfY0QBidhxOYiNGIUXTARekp1G Sylz9bSaOccGhuGBxXiVzpoxei22WJI42WQecpD69puA2Dxtm1VVRxr6rQPKVuORUJvM+I2x0YiV WdLCkC8R/0FYlkZRoA70wwcxcxJLzP7UOVb//S/8818v6vmfvb2XXfz/NVrt739NHDHrbWLWBf+O Cb4nTL/Un4PBKq4lCsN+0AE/afGrXk/wlA0jFkZZCF/1z9iP+dTxA/2bJwm+cNzrqT9m8g+wDe7O IraB5dYH7Nv/2Mh7bvyUruj8FPr/++Knw4/2++NL++jsw4fjSyqEJzijStkB/V0YjK1xOcJQYAg+ hW1T3lyzIb3CPtVIluLywH0avd96vQ2k7F8tva51rWtd61rXuta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte69u/Y/g9uf2lLAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"