#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0f763e77452729d46d6df553d13eee18cb5f446e 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 H4sIAD3/jWYAA+08/XPbNrL9WX8Fzm6GVCrRn/kYXZWc63zU7xzHE7vX1/GpHJqEJMYUyUdQtnU3 7d9+uwuAJChKcq5J7s0cMZNIIheLxe5isR+AF96N2Dk7OfufI1fMryeZl06ddPHNZ2270J4eHuLn 3rMne/R779kz+oT2ZPfg4Ju9w6eHBwfPnh3uHnyzu7e/+2z3G7b7eclobnORexljX2Oo/49ta2ur s2jUgQ6+GmfJjLnueJ7PM+66LJylSZazNAvjHJ7Gfh4mcUeCXc/DKNAQcRh/9NwovK68c4qHGipK Jj12/P7d+cnp6w8X7t+OPpwcnV1edDouG+LLTmebXb5/9X7AxDSZA/apd8tZwFMeBzz2Qy7YXZhP 4a17HcZetuh8+On09YV7/gv0t2jQHRq0n80jLvrpwhFTq9PpBHzMzvDFW5ytnc27gw6DFkO/bO7A lPAXfPOT2YzHuW295THPvJwH7HrBHgmLPQK+xN4MuNItoD0RRDi/DEixLeIr/kfPrRLM9xW5FRg3 m8d5COhyLnKAsHoEbTSYuBheWTs7s4WfpjuqhzVqAJ15eRbeD5d5q6jYZjgog+mlYcSzjuwTxjQl ZB7RhE8sekdsToDvtuVKvpLCyOk9Ejt55sUiAv44+X2OzCmQdZkn2HjQqU4CBriKwpg7AqhM7S4b JxnDByyM2XgkSUwzPg7vkRZ3wmMaaeeRcGjuxggEnczzdJ4TZtXxO2YRH1nl99QaSTk7NAlb9TIZ aMFw/SSMRB/I6s/j8L4mDJyC+QT0OQr9MAfpoGh3xPQOFE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