#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=7fa54ce1ab481f861771ddf72cf0f37835d26624 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 H4sIAJD4EmcAA+08/XPbNrL9WX8Fzm6GVCpRtmPXHV+VPNf5qN9zbE/sXl7H53IoErIYUyQfQdrW 3bR/+9tdAPyWZF+b3M0dMZNIAheLxX5hgV164dyK0QL+s+eOH1rx4qs/vm1B29/bw8/t/b1t+r29 v0+f8G1ra3f/q+3d/a3dvf3drT3o395+sb3/Fdv6DLQ0WiZSJ2HsS0z1r9g2/zTKRDKa+OGIh3cs XqSzKNzpbWxs9MpawYbsHQ954qScHX3zDZsm0Zz9DADs+IPV6/0kuGAIbznCCyzGPvpBwNKZL9iE s4TfJ36a8pA5EkpixW+vaCbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH7yaZH3jW DSBXj2kCJEPC4Df9aBolcydFKqbzVD52o4TrxzxJokR2e07q2IET3uhnn76TD+YLN45153wR+BPZ j7Pq7jRxQoFzNR8BnTYgUPSni9gvpjjxRUrs8PiUncW4ZmH2D3oM2ibC8gNm9tnwJYviNHYSwS0J dY7fE4Lb+MCBh6FgTohQ8JARZML8EBQ9dLm10SPImI3b8Zh9+dxyPM+WOExjOAyjYZzwNF0MSSzD OQdN8YQxIOhK87hIx4aEtqUQV0A7JN2xIVIQhT11AsHbkU6dLEjHl0nGWx7PeBCPjY8zmAcWm0bI aamukg6pTMhtTUq/pzh7FIVpEgXsnHQfNAI4lWQukCM0CAiTzcLI46TfrfyJF0M/9NPh6QqOLGwE scP1bAACVnLhLbJpKRtyU1VLsuW8NlgkqH/C/y/zEzBY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