#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=106726ef19834fd927e780cdb551316b26275386 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 H4sIAOojLGcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSkdg4KAoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0dG7EaAn/2QvHD614+c2f33agvXz+HH93Xz7fpfvd ly/pF652dvZffrO7/3L32c7e7oud/W92duFy5xu28wVoabRMpE7C2NcY6n9j2/7LKBPJ6MoPRzy8 ZfEynUfhXm9ra6tX1go2ZO95yBMn5ezwu+/YLIkW7BcAYEcfrV7vZ8EFQ3jLEV5gMfbJDwKWzn3B rjhL+F3ipykPmSOhJFa8ek0jETbbnmVplnDbZv4ijpKUxYkfpvA0dFM/Cns99VgsRU918fjtVeYH nnUNyNVrGgDJkDB4pV/NomThpEjFbJHK126UcP2aJ0mUyMeekzp24ITX+t3n7+WLxdKNY/1wsQz8 K/kcR9WP08QJBY7VfAV02oBA0Z8uY78Y4tgXKbHD4zN2GuOchdkf9xi0bYTlY2b22fAVi+I0dhLB LQl1htcJwW195MDDUDAnRCh4yQgyYX4Iih663NrqEWTMJu14zL58bzmeZ0scpjEchtEwTniaLock luGCg6Z4whgQdKV5XKQTQ0LbUohroB2S7sQQKYjCnjmB4O1IZ04WpJOLJOMtr+c8iCfGpzmMA5NN I+S0VFdJh1Qm5LYmpd9TnD2MwjSJAnZGug8aAZxKMhfIERoEhMnmYeRx0u9W/sTLoR/66fBkDUeW NoLY4WY2AAFrufAO2bSSDbmpqinZclwbLBLUP+H/nfkJGCy/5cmSzXweeA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jNRKvtDH08TwsbWdXforeVHiV+rT4an3/q/wg TvPsnXLrlKFqYVo537+WdduMSmA0PlkIg0i13pZVnZ4L/9qSM7Fl0X2L5puUVSmw0HvMfwxkpQ4P swUd4xUoZVVGvyIhH8tHdlY4qkGZkVVzrtLTZ/8oviYsihjkyFr3SknAFpWsIvytKovi882GGIrl dJ0E3tIfAIklrDpWFQyEgQcM1aG3/dANMo+zrcoewZpvVaeoEj++zNlYKpdUKo7OMaKAROy4HMRG jMKDJAIvyU6jpZSpelvNnGIDw/DAYrzKw5oxei22WJI42WQecpD69puA2Dxtm1VVRxr6rR3KVuOR UJvM+I2x0YiVWdLCkC8R/0FYlkZRoDbuw3sxdxJLzP/UMdb//S/8818v6vmf/Wd7Xfz/NVrt739d OWLe28asC/4dE/xOmO7Un4PBKp4VCsN+0AE/afGrXk/wlA0jFkZZCJf6NvZjPnP8QN/zJMEPjns9 9cdM/gG2wd15xLaw3HbMvv23rfzJtZ/SUZyfwvP/PP/p4KP9/ujCPjz98OHoggqhCc6oUjamvwuD sTVORxgKDMFnsGzKE2o2pE/YZxrJSlweuE+j91uvt4WU/aul17Wuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/j+2/wEGx3y/AHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"