#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ebbcce2b31a844d24ae625565f1e1b728143e588 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 H4sIAGZEJmcAA+08/XPbNrL9WX8Fzm6GVCpRtuPUHV+VPNf5qN9zbI/tXl7H53IoErIYUyQfQdrW 3bR/+9tdAPyWZF+b3M0dMZNIAheLxX5hgV164dyK0QL+s+eOH1rx4qs/vm1B23v5Ej+3915u0+/t vT36hG9bW7t7X23v7m1v7+7ubG3tfLW1vb2z9/IrtvUZaGm0TKROwtiXmOpfsW3+aZSJZDTxwxEP 71i8SGdRuNPb2NjolbWCDdl7HvLESTk7/OYbNk2iOfsZANjRudXr/SS4YAhvOcILLMY++kHA0pkv 2ISzhN8nfprykDkSSmLFb69pJsJm29MszRJu28yfx1GSsjjxwxR6Qzf1o7DXU91iIXpqiMfvJpkf eNYNIFePaQIkQ8LgN/1oGiVzJ0UqpvNUPnajhOvHPEmiRHZ7TurYgRPe6GefvpMP5gs3jnXnfBH4 E9mPs+ruNHFCgXM1HwGdNiBQ9KeL2C+mOPZFSuzw+JSdxrhmYfb3ewzaJsLyfWb22fAVi+I0dhLB LQl1ht8Tgts458DDUDAnRCh4yAgyYX4Iih663NroEWTMxu14zL58bjmeZ0scpjEchtEwTniaLoYk luGcg6Z4whgQdKV5XKRjQ0LbUogroB2S7tgQKYjCnjqB4O1Ip04WpOPLJOMtj2c8iMfGxxnMA4tN I+S0VFdJh1Qm5LYmpd9TnD2MwjSJAnZGug8aAZxKMhfIERoEhMlmYeRx0u9W/sSLoR/66fBkBUcW NoLY4Xo2AAErufAO2bSUDbmpqiXZcl4bLBLUP+H/l/kJ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gPJANMjy+08VRYkjeZrXRIVp MEWb/mqeUDpEpG38AFVdzg3phVQqscYPwkncKKUbB3K2RuKVDoY+3oel7ezKb9GbCq9SnxZfru9/ li/EaZ69U26dMlQtTCvn+1eybpNRCYzGJwthEKnW27KqU7/wbyy5ElsW3bdovklZlQILPcf8x0BW 6vAwm9M1XoFSVmX0KxLysXxka4mjGpQZWTXnKj199vfibcKiiEHOrHWvlARsUckqwl+rsihe32yI odhOV0ngLf0BkFjCqmtVwUAYeMFQnXrTD90g8zjbqJwRrNlGdYkq8ePLnI2lckml4ugcIwpIxI7L QWzEKLxIIvCS7DRaSpmqp9XMKTYwDA8sxqt01ozRa7HFksTJJvOQg9S33wTE5mnbrKo60tBvHVC2 Go+E2mTGr4yNRqzMkhaGfI74D8KyNIoCdXAfPoiZk1hi9ofOsfrvf+Gf//q2nv/Z3dnr4v8v0Wp/ /2viiFlvE7Mu+HdM8D1h+qX+HAxW8SxRGPa9DvhJi1/1eoKnbBixMMpC+Kp/xn7Mp44f6N88SfCF 415P/TGTv4NtcHcWsQ0st91nX//XRt5z46d0Feen0P+/Fz8enNvvjy7tw9MPH44uqRCa4IwqZfv0 d2EwtsblCEOBIfgUtk15Q82G9Ar7VCNZissD92n0fu31NpCyf7b0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevaf2L7f3Nfep0AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"