#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4d07efb0ffe7a2d25c756ce8305df10c67a202ff 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 H4sIAEuAmGYAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798XuC7jc2oH329s7L3e/YVtfgJZGy4T0Usa+xlD/H9vmX0aZSEdXQTTi0S1L FnIWRzu9jY2NXlkr2JC95xFPPcnZwXffsWkaz9kvAMAOPzq93s+CC4bwjif80GHsUxCGTM4Cwa44 S/ldGkjJI+YpKIUVr17TSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i89vr7Ig9J1r QK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0IuuzbvP36sX88UkSczD+SIMrtRz HNU8lqkXCRyr+QrodAGBpl8ukqAY4igQktjh8yk7SXDOwu7v9Ri0TYTle8zus+ErFicy8VLBHQV1 itcpwW185MDDSDAvQih4yQgyZUEEih5NuLPRI8iEjdvx2H313vF831U4bGs4jOJhknIpF0MSy3DO QVN8YQ0IutJ8LuTYUtCuEuIKaI+kO7aEBFG4Uy8UvB3p1MtCOT5PM97yesbDZGx9msE4MFkZI6eV uio6lDIhtw0p/Z7m7EEcyTQO2SnpPmgEcCrNJkCOMCAgTDaLYp+TfrfyJ1kMgyiQw+MVHFm4COJG 69kABKzkwjtk01I25Kaqp+SqcV2wSFD/lP9vFqRgsP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