#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=7ed3ecae93cf531ace4551d6f4f3a6531659d95c 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 H4sIAMz9wmcAA+08/XPbtpL9WX8Fnt0MyVSibMeJO3pVcq7zUd8ljid2X6/j53JoErIYUySPoGzr vWn/9ttdACRBUZJzTfJu7oiZWBK5WOw3FsAiC/9GDIvcT8QkzWdutvjm87cdaM/29/Fz9+DpLv3e 29mhT3i0v/f0yTe7+wfPdp4ePHuK73d3n+w//YbtfAFaltpcFH7O2NcY6n9j29ra6tXVzwasmOcJ m6az9JonPJ0LlkTx964vwpjlPMu54EkRpQmLkiJlU17wXEP2FmBNDUgfYXs4zCRPZ8zzJnMYgHse i2ZZmhcsywERPE0CglRgIb+9mkdx6AJqFwnwCK3qk9z68Zz31adXfSvauiNVRnf7XRrOY+h1CqTn /qzPZmkIfSblF6/o99hD2k2xyAARfUAnJoqZ+ou/bvh9lj8Y13ECXc7TG5702Vl0nfgoqD478Wf8 HNA7SjazRZBl7mwRR1eaoTi97rPCvxZ3URFMFRyQFCXXGiTwBWB/G4mi1/PYGLv0ej1glb0DF/iR ny1mV2lsoxydEdG7jRj4iNlatg4bPAfWcnobTUjmLoxqO+wv41IXrsQ0KnnO/UhwdigEz1HDr/I8 zW3r1X3Gg4KHTIL32XVasEfCYo8Ik0Pdc07GiLQrKlwNTkCuMHhA7jZzgFAX+snlBmYQ+MGsIPCD GZHAko2o4DPNyrn2RkCbb+ZGmViPQH4+9fAlkwzQI7CIaWUaEh/zBZLCK8ZAAPjALvkGW3RGhtkq xHUWyGDVmI4BHKcBwJIt21bmF1Orz6xgOk9u4MtOn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