#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=71c791e007f69f2b8646e2ab6a2a2a52b1584302 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 H4sIAGyhgmcAA+08a3PbOJLzWb8Ca0+KVEaibMcZT3lHyXmcx3g3cVy2Z3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyR7J8ld1RFViSSw0Wj0Cw100wvvRowW8J8794LISRbffP62BW3v+XP83N57vk2/ d7a26BMf7W19/8327t7u1vOdrd1tgNve3tnb+4ZtfQFaGi0XmZcy9jWm+r/YNv8yykU6ugqiEY9u WbLIZnG009vY2OiZWsGG7C2PeOplnB1+9x2bpvGc/QoA7OjU6fV+EVwwhHc84YcOYx+DMGTZLBDs irOU36VBlvGIeRJKYsVvL2kmwua60zzLU+66LJgncZqxJA2iDHqjSRbEUa+nusVC9NQQn99e5UHo O9eAXD2mCZAMCYPf9KNpnM69DKmYzjP5eBKnXD/maRqnstv3Ms8NvehaP/v0g3wwX0ySRHfOF2Fw JftxVt2dpV4kcK7mI6DTBQSK/myRBOUU7wKRETt8PmUfElyzsPv7PQZtE2H5PrP7bPiCxUmWeKng joQ6we8pwW2ccuBhJJgXIRQ8ZASZsiACRY8m3NnoEWTCxu147L587ni+70octjUcRvEwSXmWLYYk luGcg6b4whoQdKX5XGRjS0K7UogroD2S7tgSGYjCnXqh4O1Ip14eZuPzNOctj2c8TMbWxxnMA4vN YuS0VFdJh1Qm5LYmpd9TnD2MoyyNQ3ZCug8aAZxK8wmQIzQICJPNotjnpN+t/EkWwyAKsuHxCo4s XARxo/VsAAJWcuENsmkpGwpTVUty5bwuWCSof8r/Ow9SMFh+y9MFmwY89E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dkMoi1vhBOIkbRqZxIGdr5FzpMBPgVVjWzq7iAr2p8Crr 6fDl+v5X+bKV5tkb5dEpOdXCNDPVv5J1m4yqXzQ+WQODSLXemqpO/SK4duRKXFlv36L5NiVUSiz0 HFMfA1mkw6N8Tjd4JUpZkNGvSCjAypGtJY5qYDKyas5VevrsX+WbamX9gpxZ656R/2tRySrC36uy KF/5a4ih3ElXSeA1/e2HRMKqG1XBQBh4KK5OvRlEkzD3OduoxOTObKO6RJXzCWS6xlFpJKMuusCI AhKJN+EgNmIUXgQRuCE7jZaypeppNWmKDQzDB4vxK501Y/RbbNGQONlkEW2Q+vabgNh8bZtVVUca +q0DTKvxSahNZvzO2GjETJa0MOSLxX8QlmVxHKoj8/BezLzUEbPPOseav/+0tVvJ/+xi/md3Z6uL /79Gq/39pytPzHqbmHXBv2OBL6LSL/XnQLCKZ4nCsB91wE+q/KLXEzxjw5hFcR7BV/0zCRI+9YJQ /+Zpim+09nrqj1n8CwyET2Yx28By23327X9sFD3XQUaXYEEG/f959vPBqfv26Nw9/PD+/dE5FUIT nFWlbJ/+LggG2LgcYSkwBJ/C3imvmdmQ3n2eaiRLcfngQ63e773eBlL2vy29rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79f2v/Ay8mo1oAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"