#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6dba982354b174ba6cb0040be2385921a04ec736 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 H4sIAOmVHWcAA+08a3PbRpL5zF8xK8UF0CFB6mE7pQ3tU+RHdCdLKklZX0qnoCBgKMICARwGkMTd Sn77dffM4E1S2sTeqztMlU1y0NPT06/pmW5o4dyK0QL+s+eOH1rx4ps/v42hvXrxAj+3Xr3Yot9b r17RJ3wbj3dffbO1+2r8amdr++XW+Jvx1tbOeOcbNv4CtDRaJlInYexrTPW/sW3+ZZSJZHTthyMe 3rF4kc6icLu3sbHRK2sFG7IPPOSJk3J28N13bJpEc/YLALDDM6vX+1lwwRDecoQXWIx98oOApTNf sGvOEn6f+GnKQ+ZIKIkVv72hmQibbU+zNEu4bTN/HkdJyuLED1PoDd3Uj8JeT3WLheipIR6/u878 wLNuALl6TBMgGRIGv+lH0yiZOylSMZ2n8rEbJVw/5kkSJbLbc1LHDpzwRj/7/L18MF+4caw754vA v5b9OKvuThMnFDhX8xHQaQMCRX+6iP1iiiNfpMQOj0/ZSYxrFmZ/r8egbSIs32Nmnw1fsyhOYycR 3JJQp/g9IbiNMw48DAVzQoSCh4wgE+aHoOihy62NHkHGbNKOx+zL55bjebbEYRrDYRgN44Sn6WJI YhnOOWiKJ4wBQVeax0U6MSS0LYW4Atoh6U4MkYIo7KkTCN6OdOpkQTq5SDLe8njGg3hifJrBPLDY NEJOS3WVdEhlQm5rUvo9xdmDKEyTKGCnpPugEcCpJHOBHKFBQJhsFkYeJ/1u5U+8GPqhnw6PV3Bk YSOIHa5nAxCwkgvvkU1L2ZCbqlqSLee1wSJB/RP+35m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