#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=af965342ca65d35a437472354f501cc3072e4cc1 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 H4sIAHbsMGcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799X27vbLl1s7u99sbW+/2Hr1Ddv6ArQ0WiZSJ2Hsa0z1v7Ft/mWUiWQ08cMR D+9YvEhnUbjT29jY6JW1gg3ZBx7yxEk5O/zuOzZNojn7BQDY0bnV6/0suGAIbznCCyzGPvlBwNKZ L9iEs4TfJ36a8pA5EkpixW9vaCbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH7yaZ H3jWDSBXj2kCJEPC4Df9aBolcydFKqbzVD52o4TrxzxJokR2e07q2IET3uhnn7+XD+YLN45153wR +BPZj7Pq7jRxQoFzNR8BnTYgUPSni9gvpjj2RUrs8PiUnca4ZmH293sM2ibC8n1m9tnwNYviNHYS wS0JdYbfE4LbOOfAw1AwJ0QoeMgIMmF+CIoeutza6BFkzMbteMy+fG45nmdLHKYxHIbRME54mi6G JJbhnIOmeMIYEHSleVykY0NC21KIK6Adku7YECmIwp46geDtSKdOFqTjyyTjLY9nPIjHxqcZzAOL TSPktFRXSYdUJuS2JqXfU5w9jMI0iQJ2RroPGgGcSjIXyBEaBITJZmHkcdLvVv7Ei6Ef+unwZAVH FjaC2OF6NgABK7nwHtm0lA25qaol2XJeGywS1D/h/535CRgsv+PJg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MEWb/mqeUDpEpG38AFVdzg3phVQqscYPwkncKKUbB3K2RuKVDoY+3oel7ezKb9GbCq9SnxZfru9/ lS/EaZ69V26dMlQtTCvn+1eybpNRCYzGJwthEKnW27KqU7/wbyy5ElsW3bdovklZlQILPcf8x0BW 6vAwm9M1XoFSVmX0KxLysXxka4mjGpQZWTXnKj199o/ibcKiiEHOrHWvlARsUckqwt+qsihe32yI odhOV0ngHf0BkFjCqmtVwUAYeMFQnXrTD90g8zjbqJwRrNlGdYkq8ePLnI2lckml4ugcIwpIxI7L QWzEKLxIIvCS7DRaSpmqp9XMKTYwDA8sxqt01ozRa7HFksTJJvOQg9S33wTE5mnbrKo60tBvHVC2 Go+E2mTGb4yNRqzMkhaGfIn4D8KyNIoCdXAfPoiZk1hi9qfOsfrvf+Gf/3pZz//s7m538f/XaLW/ /zVxxKy3iVkX/Dsm+J4w/VJ/DgareJYoDPtBB/ykxa97PcFTNoxYGGUhfNU/Yz/mU8cP9G+eJPjC ca+n/pjJP8A2uDuL2AaW2+6zb/9tI++58VO6ivNT6P/Pi58Ozu0PR5f24enHj0eXVAhNcEaVsn36 uzAYW+NyhKHAEHwK26a8oWZDeoV9qpEsxeWB+zR6v/V6G0jZv1p6Xeta17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/2P7H3GEK00AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"