#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6c47273979b63eb73dc2fb37beeb17de94f93b8e 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 H4sIAMM4e2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJs2dPduHzm63t7Sfbu9+wrS9AS6PlIvNSxr7GVP8X2+afRrlIR1dBNOLR LUsW2SyOdnobGxs9UyvYkL3lEU+9jLOD775j0zSes18AgB2eOr3ez4ILhvCOJ/zQYexDEIYsmwWC XXGW8rs0yDIeMU9CSaz47SXNRNhcd5pnecpdlwXzJE4zlqRBlEFvNMmCOOr1VLdYiJ4a4vPbqzwI fecakKvHNAGSIWHwm340jdO5lyEV03kmH0/ilOvHPE3jVHb7Xua5oRdd62cfv5cP5otJkujO+SIM rmQ/zqq7s9SLBM7VfAR0uoBA0Z8tkqCc4igQGbHD51P2PsE1C7u/12PQNhGW7zG7z4YvWJxkiZcK 7kioE/yeEtzGKQceRoJ5EULBQ0aQKQsiUPRowp2NHkEmbNyOx+7L547n+67EYVvDYRQPk5Rn2WJI YhnOOWiKL6wBQVeaz0U2tiS0K4W4Atoj6Y4tkYEo3KkXCt6OdOrlYTY+T3Pe8njGw2RsfZjBPLDY LEZOS3WVdEhlQm5rUvo9xdmDOMrSOGQnpPugEcCpNJ8AOUKDgDDZLIp9Tvrdyp9kMQyiIBser+DI wkUQN1rPBiBgJRfeIJuWsqEwVbUkV87rgkWC+qf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NCtNgirb61TyhTIjI2vgBqrqcG9IBqSxijR+Ek7hhZBoHcrZGzpUOMwFehWXt7Cou0JsKr7Ke Dl+u73+WL1tpnr1RHp2SUy1MM1P9K1m3yaj6ReOTNTCIVOutqerUL4JrR67ElfX2LZpvU0KlxELP MfUxkEU6PMrndINXopQFGf2KhAKsHNla4qgGJiOr5lylp8/+Xb6pVtYvyJm17hn5vxaVrCL8rSqL 8pW/hhjKnXSVBF7T335IJKy6URUMhIGH4urUm0E0CXOfs41KTO7MNqpLVDmfQKZrHJVGMuqiC4wo IJF4Ew5iI0bhRRCBG7LTaClbqp5Wk6bYwDB8sBi/0lkzRr/FFg2Jk00W0Qapb78JiM3XtllVdaSh 3zrAtBqfhNpkxm+MjUbMZEkLQ75Y/AdhWRbHoToyD+/FzEsdMfusc6z5+09bu838z+6TZ138/zVa 7e8/XXli1tvErAv+HQt8EZV+qT8HglU8SxSG/aADflLlF72e4BkbxiyK8wi+6p9JkPCpF4T6N09T fKO111N/zOLfYCB8MovZBpbb7rFv/7JR9FwHGV2CBRn0/+Psp/1T9+3huXvw/t27w3MqhCY4q0rZ Hv1dEAywcTnCUmAIPoW9U14zsyG9+zzVSJbi8sGHWr3fer0NpOx/W3pd61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXfv/1v4DqOx4NAB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"