#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6124d1d7687eafabf53a52b7cd1e927669d323dd 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 H4sIAMkyd2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJ02dPtuHzm63t7SfbW9+wrS9AS6PlIvNSxr7GVP8X2+afRrlIR1dBNOLR LUsW2SyOdnobGxs9UyvYkL3lEU+9jLOD775j0zSes18AgB2eOr3ez4ILhvCOJ/zQYexDEIYsmwWC XXGW8rs0yDIeMU9CSaz47SXNRNhcd5pnecpdlwXzJE4zlqRBlEFvNMmCOOr1VLdYiJ4a4vPbqzwI fecakKvHNAGSIWHwm340jdO5lyEV03kmH0/ilOvHPE3jVHb7Xua5oRdd62cfv5cP5otJkujO+SIM rmQ/zqq7s9SLBM7VfAR0uoBA0Z8tkqCc4igQGbHD51P2PsE1C7u/12PQNhGW7zG7z4YvWJxkiZcK 7kioE/yeEtzGKQceRoJ5EULBQ0aQKQsiUPRowp2NHkEmbNyOx+7L547n+67EYVvDYRQPk5Rn2WJI YhnOOWiKL6wBQVeaz0U2tiS0K4W4Atoj6Y4tkYEo3KkXCt6OdOrlYTY+T3Pe8njGw2RsfZjBPLDY LEZOS3WVdEhlQm5rUvo9xdmDOMrSOGQnpPugEcCpNJ8AOUKDgDDZLIp9Tvrdyp9kMQyiIBser+DI wkUQN1rPBiBgJRfeIJuWsqEwVbUkV87rgkWC+qf8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oM r40K02CKtvrVPKFMiMja+AGqupwb0gGpLGKNH4STuGFkGgdytkbOlQ4zAV6FZe3sKi7Qmwqvsp4O X67vf5YvW2mevVEenZJTLUwzU/0rWbfJqPpF45M1MIhU662p6tQvgmtHrsSV9fYtmm9TQqXEQs8x 9TGQRTo8yud0g1eilAUZ/YqEAqwc2VriqAYmI6vmXKWnz/5dvqlW1i/ImbXuGfm/FpWsIvytKovy lb+GGMqddJUEXtPffkgkrLpRFQyEgYfi6tSbQTQJc5+zjUpM7sw2qktUOZ9ApmsclUYy6qILjCgg kXgTDmIjRuFFEIEbstNoKVuqnlaTptjAMHywGL/SWTNGv8UWDYmTTRbRBqlvvwmIzde2WVV1pKHf OsC0Gp+E2mTGb4yNRsxkSQtDvlj8B2FZFsehOjIP78XMSx0x+6xzrPn7T1u7zfzP7pOdLv7/Gq32 95+uPDHrbWLWBf+OBb6ISr/UnwPBKp4lCsN+0AE/qfKLXk/wjA1jFsV5BF/1zyRI+NQLQv2bpym+ 0drrqT9m8W8wED6ZxWwDy2332Ld/2Sh6roOMLsGCDPr/cfbT/qn79vDcPXj/7t3hORVCE5xVpWyP /i4IBti4HGEpMASfwt4pr5nZkN59nmokS3H54EOt3m+93gZS9r8tva51rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWu/X9r/wFx19liAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"