#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b4d3ee00552672bf1a151cfe2fbd865f20d49e04 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 H4sIAAssyWYAA+08a3PbRpL5zF8xK8UF0CFBSZbklDa0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r2oxVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdzbw9/tl3vbdL/9 8iX9wtXW1u7Lb7Z39/d3dnb29l/ufrO1vf1iZ+sbtvUFaGm0TKROwtjXGOr/Y9v8yygTyWjihyMe 3rF4kc6icKe3sbHRK2sFG7L3POSJk3J29N13bJpEc/YLALDjj1av97PggiG85QgvsBj75AcBS2e+ YBPOEn6f+GnKQ+ZIKIkVr17TSITNtqdZmiXctpk/j6MkZXHihyk8Dd3Uj8JeTz0WC9FTXTx+N8n8 wLNuALl6TQMgGRIGr/SraZTMnRSpmM5T+dqNEq5f8ySJEvnYc1LHDpzwRr/7/L18MV+4cawfzheB P5HPcVT9OE2cUOBYzVdApw0IFP3pIvaLIU58kRI7PD5lZzHOWZj9gx6Dtomw/ICZfTZ8xaI4jZ1E cEtCneN1QnAbHznwMBTMCREKXjKCTJgfgqKHLrc2egQZs3E7HrMv31uO59kSh2kMh2E0jBOeposh iWU456ApnjAGBF1pHhfp2JDQthTiCmiHpDs2RAqisKdOIHg70qmTBen4Msl4y+sZD+Kx8WkG48Bk 0wg5LdVV0iGVCbmtSen3FGePojBNooCdk+6DRgCnkswFcoQGAWGyWRh5nPS7lT/xYuiHfjo8XcGR hY0gdrieDUDASi68QzYtZUNuqmpKthzXBosE9U/4/2Z+Agb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