#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=45a426c6e276cc958a5c358921f184584f8576c8 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 H4sIAKhUeWcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3af7jzZ2d6G/u3tnWdPv2FbX4CWRstF5qWMfY2p/i+2zT+NcpGOLoNoxKMb liyyWRzt9DY2NnqmVrAhe8MjnnoZZ4fffcemaTxnvwAAO/rg9Ho/Cy4Ywjue8EOHsY9BGLJsFgh2 yVnKb9Mgy3jEPAklseK3FzQTYXPdaZ7lKXddFsyTOM1YkgZRBr3RJAviqNdT3WIhemqIz28u8yD0 nStArh7TBEiGhMFv+tE0TudehlRM55l8PIlTrh/zNI1T2e17meeGXnSln336Xj6YLyZJojvnizC4 lP04q+7OUi8SOFfzEdDpAgJFf7ZIgnKKt4HIiB0+n7L3Ca5Z2P39HoO2ibB8n9l9NnzO4iRLvFRw R0Kd4PeU4DY+cOBhJJgXIRQ8ZASZsiACRY8m3NnoEWTCxu147L587ni+70octjUcRvEwSXmWLYYk luGcg6b4whoQdKX5XGRjS0K7UogroD2S7tgSGYjCnXqh4O1Ip14eZuOzNOctj2c8TMbWxxnMA4vN YuS0VFdJh1Qm5LYmpd9TnD2MoyyNQ3ZCug8aAZxK8wmQIzQICJPNotjnpN+t/EkWwyAKsuHxCo4s XARxo/VsAAJWcuE1smkpGwpTVUty5bwuWCSof8r/mQcp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Hh tVFhGkzRVr+aJ5QJEVkbP0BVl3NDOiCVRazxg3ASN4xM40DO1si50mEmwKuwrJ1dxQV6U+FV1tPh y/X9z/JlK82z18qjU3KqhWlmqn8l6zYZVb9ofLIGBpFqvTVVnfpFcOXIlbiy3r5F821KqJRY6Dmm PgaySIdH+Zxu8EqUsiCjX5FQgJUjW0sc1cBkZNWcq/T02b/LN9XK+gU5s9Y9I//XopJVhL9VZVG+ 8tcQQ7mTrpLAK/rbD4mEVTeqgoEw8FBcnXoziCZh7nO2UYnJndlGdYkq5xPIdI2j0khGXXSBEQUk Em/CQWzEKLwIInBDdhotZUvV02rSFBsYhg8W41c6a8bot9iiIXGyySLaIPXtNwGx+do2q6qONPRb B5hW45NQm8z4jbHRiJksaWHIF4v/ICzL4jhUR+bhnZh5qSNmn3WONX//aWuvmf/Z29nq4v+v0Wp/ /+nSE7PeJmZd8O9Y4Iuo9Ev9ORCs4lmiMOwHHfCTKj/v9QTP2DBmUZxH8FX/TIKET70g1L95muIb rb2e+mMW/wYD4ZNZzDaw3HafffuXjaLnKsjoEizIoP8fpz8dfHDfHJ25h+/fvTs6o0JogrOqlO3T 3wXBABuXIywFhuBT2DvlNTMb0rvPU41kKS4ffKjV+63X20DK/rel17Wuda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1/2/tP+hZuHkAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"