#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0634190f36db324e16b5a78bcb7d02d5a792dbeb 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 H4sIAAN2OWcAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+9svd/Z3Xu5ufbO1vf1i+8U3bOsL0NJomUidhLGvMdX/xrb5l1EmktHED0c8 vGPxIp1F4U5vY2OjV9YKNmTvecgTJ+Xs6Lvv2DSJ5uwXAGDHH61e72fBBUN4yxFeYDH2yQ8Cls58 wSacJfw+8dOUh8yRUBIrfntNMxE2255maZZw22b+PI6SlMWJH6bQG7qpH4W9nuoWC9FTQzx+N8n8 wLNuALl6TBMgGRIGv+lH0yiZOylSMZ2n8rEbJVw/5kkSJbLbc1LHDpzwRj/7/L18MF+4caw754vA n8h+nFV3p4kTCpyr+QjotAGBoj9dxH4xxYkvUmKHx6fsLMY1C7N/0GPQNhGWHzCzz4avWBSnsZMI bkmoc/yeENzGRw48DAVzQoSCh4wgE+aHoOihy62NHkHGbNyOx+zL55bjebbEYRrDYRgN44Sn6WJI YhnOOWiKJ4wBQVeax0U6NiS0LYW4Atoh6Y4NkYIo7KkTCN6OdOpkQTq+TDLe8njGg3hsfJrBPLDY NEJOS3WVdEhlQm5rUvo9xdmjKEyTKGDnpPugEcCpJHOBHKFBQJhsFkYeJ/1u5U+8GPqhnw5PV3Bk YSOIHa5nAxCwkgvvkE1L2ZCbqlqSLee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eZrXRIVp MEWb/mqeUDpEpG38AFVdzg3phVQqscYPwkncKKUbB3K2RuKVDoY+3oel7ezKb9GbCq9SnxZfru9/ lS/EaZ69U26dMlQtTCvn+1eybpNRCYzGJwthEKnW27KqU7/wbyy5ElsW3bdovklZlQILPcf8x0BW 6vAwm9M1XoFSVmX0KxLysXxka4mjGpQZWTXnKj199o/ibcKiiEHOrHWvlARsUckqwt+qsihe32yI odhOV0ngLf0BkFjCqmtVwUAYeMFQnXrTD90g8zjbqJwRrNlGdYkq8ePLnI2lckml4ugcIwpIxI7L QWzEKLxIIvCS7DRaSpmqp9XMKTYwDA8sxqt01ozRa7HFksTJJvOQg9S33wTE5mnbrKo60tBvHVC2 Go+E2mTGb4yNRqzMkhaGfIn4D8KyNIoCdXAfPoiZk1hi9qfOsfrvf+Gf/3pZz//s7u518f/XaLW/ /zVxxKy3iVkX/Dsm+J4w/VJ/DgareJYoDPtBB/ykxa96PcFTNoxYGGUhfNU/Yz/mU8cP9G+eJPjC ca+n/pjJP8A2uDuL2AaW2x6wb/9tI++58VO6ivNT6P/Pi58OP9rvjy/to7MPH44vqRCa4IwqZQf0 d2EwtsblCEOBIfgUtk15Q82G9Ar7VCNZissD92n0fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeva/8f2P2d5IikAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"