#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d1bcc26731d1a04f5d396d222502e337a32011dc 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 H4sIAPs/GGcAA+08a3PbRpL5zF8xK8UF0CFBvWyntKF9ivyI7mRJJSnrS+kUFAgMRVgggMMAkrhb yW+/7p4ZvElKm9h7dYepskkOenp6+jU90w0tnFsxWsB/9tzxQytefPPnty1or168wM/tVy+26ff2 q1f0Cd+2tvZefbO992rr5dbuq5e78Hx7e3d7+xu29QVoabRMpE7C2NeY6n9j2/zLKBPJaOKHIx7e sXiRzqJwp7exsdErawUbsg885ImTcnb43XdsmkRz9gsAsKNzq9f7WXDBEN5yhBdYjH3yg4ClM1+w CWcJv0/8NOUhcySUxIrf3tBMhM22p1maJdy2mT+PoyRlceKHKfSGbupHYa+nusVC9NQQj99NMj/w rBtArh7TBEiGhMFv+tE0SuZOilRM56l87EYJ1495kkSJ7Pac1LEDJ7zRzz5/Lx/MF24c6875IvAn sh9n1d1p4oQC52o+AjptQKDoTxexX0xx7IuU2OHxKTuNcc3C7O/3GLRNhOX7zOyz4WsWxWnsJIJb EuoMvycEt3HOgYehYE6IUPCQEWTC/BAUPXS5tdEjyJiN2/GYffnccjzPljhMYzgMo2Gc8DRdDEks wzkHTfGEMSDoSvO4SMeGhLalEFdAOyTdsSFSEIU9dQLB25FOnSxIx5dJxlsez3gQj41PM5gHFptG yGmprpIOqUzIbU1Kv6c4exiFaRIF7Ix0HzQCOJVkLpAjNAgIk83CyOOk3638iRdDP/TT4ckKjixs BLHD9WwAAlZy4T2yaSkbclNVS7LlvDZYJKh/wv878xMwWH7HkwWb+jzwCm5czrieZcDu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