#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ba912e3e964bc02d4655973371605a5457893c6b 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 H4sIAOiLMWcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799X27outvZdbL7/Z2t5+sb31Ddv6ArQ0WiZSJ2Hsa0z1v7Ft/mWUiWQ08cMR D+9YvEhnUbjT29jY6JW1gg3ZBx7yxEk5O/zuOzZNojn7BQDY0bnV6/0suGAIbznCCyzGPvlBwNKZ L9iEs4TfJ36a8pA5EkpixW9vaCbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH7yaZ H3jWDSBXj2kCJEPC4Df9aBolcydFKqbzVD52o4TrxzxJokR2e07q2IET3uhnn7+XD+YLN45153wR +BPZj7Pq7jRxQoFzNR8BnTYgUPSni9gvpjj2RUrs8PiUnca4ZmH293sM2ibC8n1m9tnwNYviNHYS wS0JdYbfE4LbOOfAw1AwJ0QoeMgIMmF+CIoeutza6BFkzMbteMy+fG45nmdLHKYxHIbRME54mi6G JJbhnIOmeMIYEHSleVykY0NC21KIK6Adku7YECmIwp46geDtSKdOFqTjyyTjLY9nPIjHxqcZzAOL TSPktFRXSYdUJuS2JqXfU5w9jMI0iQJ2RroPGgGcSjIXyBEaBITJZmHkcdLvVv7Ei6Ef+unwZAVH FjaC2OF6NgABK7nwHtm0lA25qaol2XJeGywS1D/h/535CRgsv+PJgk19H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