#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=8b382470f15ce0282beb939f6241d64567ede9ca 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 H4sIAAmyd2YAA+08a3PbRpL+zF8xK8UF0CFBvfwobmifIj+iO1tWWcr6UjoFBQJDERYI4DCgJO5W 8tuvu+eBB0FS2sTeulpMlS0S6Onp6dd098xw4V2LwQL+c2deGDvp4tGf33agPX/6lP5Cq/3d3dk5 eP5o9+DZ/tPn+zvPd/Ye7ezu7zw7eMR2vgItS20uci9j7FGWJPk6uE3v/5+27b8M5iIbjMN4wOMb li7yaRLvdba2tjplrWB99o7HPPNyzo6+/55NsmTGfgEAdvzJ6XR+FlwwhHc8EUQOY5/DKGL5NBRs zFnGb7Mwz3nMPAklseKnVzQSYXPdyTyfZ9x1WThLkyxnaRbGOTyN/TxM4k5HPRYL0VFdAn4znodR 4FwBcvWaBkAyJAx+0q8mSTbzcqRiMsvlaz/JuH7NsyzJ5OPAyz038uIr/e7LC/litvDTVD+cLaJw LJ/jqPpxnnmxwLGWXwGdLiBQ9OeLNCyGeB+KnNgR8An7mOKchd0ddhi0bYTlQ2Z3Wf8lS9I89TLB HQl1ip8zgtv6xIGHsWBejFDwkhFkxsIYFD32ubPVIciUjZrx2F353vGCwJU4bKvfj5N+mvE8X/RJ LP0ZB00JhNUj6EoLuMhHloR2pRDXQHsk3ZElchCFO/EiwZuRTrx5lI/OszlveD3lUTqyPk9hHJhs niCnpbpKOqQyIbc1Kd2O4uxREudZErFT0n3QCOBUNveBHKFBQJhsGicBJ/1u5E+66IdxmPdP1nBk 4SKIG29mAxCwlgtvkU0r2WBMVU3JleO6YJGg/hn/33m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