#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=aeed2b2a0c8c124c70098747659d35b08fa020ca 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 H4sIABhBx2cAA+08/XPbtpL9WX8Fnt0MqVSi5I8kHb0qOdf5qO8SxxO7r9fxUzk0CVmMKZJHULb1 3rR/++0uAJKgKMm5Jnk3d8RMLIlcLPYbC2CRpXcjBnnmxWKaZHMnXX7z+dsQ2tPDQ/zce/Zkj37v D4f0CY8O958cfLN3+Ozp3tPD4f5TgNvbOzh49g0bfgFaVtpC5F7G2NcY6n9j29nZ6VTVz/osX2Qx myXz5JrHPFkIFofR944ngohlPM244HEeJjEL4zxhM57zTEN2lmBNNUgPYTs4zDRL5sx1pwsYgLsu C+dpkuUszQARPI19glRgAb+9WoRR4ABqBwlwCa3qE9960YL31KdbfsubuiNVRnf7XRIsIuh1BqRn 3rzH5kkAfabFFzfvddhD2k2+TAERfUAnJvK5+ou/bvh9mj0Y10kMXS6SGx732Hl4HXsoqB479eb8 AtB3lWzmSz9NnfkyCq80Q1Fy3WO5dy3uwtyfKTggKYyvNYjvCcD+NhR5p+OyMXbpdDrAKnsHLvAj P1/Or5LIRjl2R0TvLmLgI2Zr2XZZ/zmwltHbcEoyd2BUu8v+Mi504UhMo4LnzAsFZ0dC8Aw1/CrL ksy2Xt2n3M95wCR4j10nOXskLPaIMHWpe8bJGJF2RYWjwQnIEQYPyN12DhDqUj+ZbGEGgR/MCgI/ mBEJLNkIcz7XrFxobwS02XZulIl1COTnMxdfMskAPQKLmJWmIfExTyApvGQMBIAP7IJvsMXuyDBb hbjKAhmsGrNrAEeJD7Bky7aVevnM6jHLny3iG/gy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