#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=84a1451f4aa5862fd237157e290191355d8c2432 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 H4sIAExcHmcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799XWq929PXq+vf1iZ/sbtvUFaGm0TKROwtjXmOp/Y9v8yygTyWjihyMe3rF4 kc6icKe3sbHRK2sFG7IPPOSJk3J2+N13bJpEc/YLALCjc6vX+1lwwRDecoQXWIx98oOApTNfsAln Cb9P/DTlIXMklMSK397QTITNtqdZmiXctpk/j6MkZXHihyn0hm7qR2Gvp7rFQvTUEI/fTTI/8Kwb QK4e0wRIhoTBb/rRNErmTopUTOepfOxGCdePeZJEiez2nNSxAye80c8+fy8fzBduHOvO+SLwJ7If Z9XdaeKEAudqPgI6bUCg6E8XsV9MceyLlNjh8Sk7jXHNwuzv9xi0TYTl+8zss+FrFsVp7CSCWxLq DL8nBLdxzoGHoWBOiFDwkBFkwvwQFD10ubXRI8iYjdvxmH353HI8z5Y4TGM4DKNhnPA0XQxJLMM5 B03xhDEg6ErzuEjHhoS2pRBXQDsk3bEhUhCFPXUCwduRTp0sSMeXScZbHs94EI+NTzOYBxabRshp qa6SDqlMyG1NSr+nOHsYhWkSBeyMdB80AjiVZC6QIzQICJPNwsjjpN+t/IkXQz/00+HJCo4sbASx w/VsAAJWcuE9smkpG3JTVUuy5bw2WCSof8L/O/MTMFh+x5MFm/o88Ap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