#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=144e1968379262a49ca1a22bfcaa9cd998e99f82 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 H4sIAL/2M2cAA+08a3PbRpL5zF8xK8UF0CFBvWyntKF9ivyI7mRJJSnrS+kUFAgMRVgggMMAkrhb yW+/7p4ZvElKm9h7dYcpWySAnp6efk3PdIML51aMFvDHnjt+aMWLb/78tgXt1YsX+Ln96sU2XW+/ ekWf8G1ra+/VN9t7r+Dfq93t3a1vtra3d7e3v2FbX4CWRstE6iSMfY2h/je2zb+MMpGMJn444uEd ixfpLAp3ehsbG72yVrAh+8BDnjgpZ4fffcemSTRnvwAAOzq3er2fBRcM4S1HeIHF2Cc/CFg68wWb cJbw+8RPUx4yR0JJrPjtDY1E2Gx7mqVZwm2b+fM4SlIWJ36Ywt3QTf0o7PXUbbEQPdXF43eTzA88 6waQq8c0AJIhYfCbfjSNkrmTIhXTeSofu1HC9WOeJFEib3tO6tiBE97oZ5+/lw/mCzeO9c35IvAn 8j6Oqm+niRMKHKv5COi0AYGiP13EfjHEsS9SYofHp+w0xjkLs7/fY9A2EZbvM7PPhq9ZFKexkwhu Sagz/J4Q3MY5Bx6GgjkhQsFDRpAJ80NQ9NDl1kaPIGM2bsdj9uVzy/E8W+IwjeEwjIZxwtN0MSSx DOccNMUTxoCgK83jIh0bEtqWQlwB7ZB0x4ZIQRT21AkEb0c6dbIgHV8mGW95PONBPDY+zWAcmGwa Iaeluko6pDIhtzUp/Z7i7GEUpkkUsDPSfdAI4FSSuUCO0CAgTDYLI4+TfrfyJ14M/dBPhycrOLKw EcQO17MBCFjJhffIpqVsyE1VTcmW49pgk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KooSR/I0r4kK02CK Nv3VPKF0iEjb+AGqupwb0gupVGKNH4STuFFKNw7kaI3EK20MfTwPS9vZlZ+iNxVepT4tvlzf/ypf iNM8e6/cOmWoWphWzvevZN0moxIYjU8WwiBSrbdlVaf7wr+x5ExsWXTfovkmZVUKLPQc8x8DWanD w2xOx3gFSlmV0a9IyMfyka0ljmpQZmTVnKv09Nk/ircJiyIGObLWvVISsEUlqwh/q8qieH2zIYZi OV0lgXf0AyCxhFXHqoKBMPCAoTr0ph+6QeZxtlHZI1izjeoUVeLHlzkbS+WSSsXROUYUkIgdl4PY iFF4kETgJdlptJQyVU+rmVNsYBgeWIxXuVkzRq/FFksSJ5vMQw5S334TEJunbbOq6khDv7VD2Wo8 EmqTGb8xNhqxMktaGPIl4j8Iy9IoCtTGffggZk5iidmfOsbq3//Cn/96Wc//7O3tdvH/12i13/+a OGLW28SsC/6OCb4nTFfq52CwimeJwrAfdMBPWvy61xM8ZcOIhVEWwld9Gfsxnzp+oK95kuALx72e +jGTf4BtcHcWsQ0st91n3/7bRn7nxk/pKM5P4f5/Xvx0cG5/OLq0D08/fjy6pEJogjOqlO3T78Jg bI3TEYYCQ/ApLJvyhJoN6RX2qUayFJcH7tPo/dbrbSBl/2rpda1rXeta17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1/4/tfwAGfzTUAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"