#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4e00f5fba31334c5c9d0666cab8beae0314603db 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 H4sIAJpKmGYAA+08a3PbOJLzWb8Ca0+KVEaibMdJpryj5DzOY3zn2K7Ys7kpn4dFi5DFmCJ5BGhb uzXz26+7AfAtyd6ZZK9qiapEEthoNPqFBrrphXcjRgv4z517QeQki2/+/LYF7eXz5/i5/fL5Nv3e fvmSPuHb1tbuy2+2d1/svtjafb79DPq3t59t737Dtr4ALY2WCemljH2Nqf4/ts2/jDKRjq6CaMSj W5Ys5CyOdnobGxu9slawIXvPI556krOD775j0zSes18AgB1+dHq9nwUXDOEdT/ihw9inIAyZnAWC XXGW8rs0kJJHzFNQCit+e00zETbXnWYyS7nrsmCexKlkSRpEEnqjiQziqNfT3WIhenqIz2+vsiD0 nWtArh/TBEiGgsFv5tE0TueeRCqmc6keT+KUm8c8TeNUdfue9NzQi67Ns8/fqwfzxSRJTOd8EQZX qh9nNd0y9SKBczUfAZ0uIND0y0USFFMcBUISO3w+ZScJrlnY/b0eg7aJsHyP2X02fMXiRCZeKrij oE7xe0pwGx858DASzIsQCh4ygkxZEIGiRxPubPQIMmHjdjx2Xz13PN93FQ7bGg6jeJikXMrFkMQy nHPQFF9YA4KuNJ8LObYUtKuEuALaI+mOLSFBFO7UCwVvRzr1slCOz9OMtzye8TAZW59mMA8sVsbI aaWuig6lTMhtQ0q/pzl7EEcyjUN2SroPGgGcSrMJkCMMCAiTzaLY56TfrfxJFsMgCuTweAVHFi6C uNF6NgABK7nwDtm0lA25qeoluWpeFywS1D/l/5sFKRgsv+Xpgk0DHvoFN85n3M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