#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0137789bf9d38e2534d2ef111a9b5475fb65047c 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 H4sIAPIbdGcAA+08/XPbNrL9WX8Fzm6GVCpRsuMkHV+VnOt81HeJ44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfSuxWgJ/7kLL4icZPnN529jaE8fP8bPnaePd+j3 7nhMn/jo6fjJNzt7Tx89Hu88frK7+814Z+fRePcbNv4CtDRaLjIvZexrTPV/sW3/aZSLdHQZRCMe 3bBkmc3jaLe3tbXVM7WCDdlrHvHUyzg7/O47NkvjBfsFANjRe6fX+1lwwRDe8YQfOox9CMKQZfNA sEvOUn6bBlnGI+ZJKIkVvz2nmQib687yLE+567JgkcRpxpI0iDLojaZZEEe9nuoWS9FTQ3x+c5kH oe9cAXL1mCZAMiQMftOPZnG68DKkYrbI5ONpnHL9mKdpnMpu38s8N/SiK/3s4/fywWI5TRLduViG waXsx1l1d5Z6kcC5mo+AThcQKPqzZRKUU7wJREbs8PmMvUtwzcLu7/cYtG2E5fvM7rPhMxYnWeKl gjsS6gS/pwS39Z4DDyPBvAih4CEjyJQFESh6NOXOVo8gEzZpx2P35XPH831X4rCt4TCKh0nKs2w5 JLEMFxw0xRfWgKArzecim1gS2pVCXAPtkXQnlshAFO7MCwVvRzrz8jCbnKU5b3k852EysT7MYR5Y bBYjp6W6SjqkMiG3NSn9nuLsYRxlaRyyE9J90AjgVJpPgRyhQUCYbB7FPif9buVPshwGUZANj9dw ZOkiiBttZgMQsJYLr5BNK9lQmKpakivndcEiQf1T/s88SMFg+Q1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kbI2cKx1mArwKy9rZVVygNxVe ZT0dvlrf/yxfttI8e6U8OiWnWphmpvrXsm6bUfWLxidrYBCp1ltT1alfBFeOXIkr6+1bNN+mhEqJ hZ5j6mMgi3R4lC/oBq9EKQsy+hUJBVg5Ml7hqAYmI6vmXKWnz/5dvqlW1i/ImbXuGfm/FpWsIvyt Kovylb+GGMqddJ0EXtLffkgkrLpRFQyEgYfi6tTbQTQNc5+zrUpM7sy3qktUOZ9ApmsclUYy6qIL jCggkXhTDmIjRuFFEIEbstNoKVuqnlaTptjAMHywGL/SWTNGv8UWDYmTTRbRBqlvvwmIzde2WVV1 pKHfOsC0Gp+E2mTGb4yNRsxkSQtDvlj8B2FZFsehOjIP78TcSx0x/6xzbPj7T+O9Zv5nb3evi/+/ Rqv9/adLT8x725h1wb9jgS+i0i/150CwimeFwrAfdMBPqvys1xM8Y8OYRXEewVf9MwkSPvOCUP/m aYpvtPZ66o9Z/BsMhE/nMdvCctt99u1ftoqeqyCjS7Agg/5/nP508N59fXTmHr57+/bojAqhCc6q UrZPfxcEA2xcjrAUGILPYO+U18xsSO8+zzSSlbh88KFW77debwsp+9+WXte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/r+1/wCu6dWtAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"