#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=8d0accaba34b16485b06c425733cf8944ee1209e 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 H4sIALRIgGYAA+08/XPbNrL9WX8Fzm6GVCrRH3E+Rlcl5zof9bvE8dju9XV8KocmIYkxRfIRlG3d Tfu33+4CIAmKkuxrknszR8wkksjFYrG7WOwH4IV3LXZOjk/+59AV86tJ5qVTJ11881nbLrRnBwf4 uff86R793nv+nD6hPd198uSbvYNnB7u7Bwd7z/e/2d3b3336/Bu2+3nJaG5zkXsZY19jqP+PbWtr q7No1IEOvhpnyYy57niezzPuuiycpUmWszQL4xyexn4eJnFHgl3NwyjQEHEYf/LcKLyqvHOKhxoq SiY9dvTxw+nx+zdn5+7fDs+OD08uzjsdlw3xZaezzS4+vv44YGKazAH71LvhLOApjwMe+yEX7DbM p/DWvQpjL1t0zn56/+bcPf0F+ls06A4N2s/mERf9dOGIqdXpdAI+Zif44h3O1s7m3UGHQYuhXzZ3 YEr4C775yWzG49y23vGYZ17OA3a1YI+ExR4BX2JvBlzpFtCeCCKcXwak2BbxFf+j51YJ5vuK3AqM m83jPAR0ORc5QFg9gjYaTFwML62dndnCT9Md1cMaNYDOvDwL74bLvFVUbDMclMH00jDiWUf2CWOa EjKPaMInFr0jNifAd9tyJV9JYeT0HomdPPNiEQF/nPwuR+YUyLrME2w86FQnAQNcRmHMHQFUpnaX jZOM4QMWxmw8kiSmGR+Hd0iLO+ExjbTzSDg0d2MEgk7meTrPCbPq+B2ziI+s8ntqjaScHZqErXqZ DLRguH4SRqIPZPXncXhXEwZOwXwC+hyFfpiDdFC0O2J6C4ol5SS52GNaNWviuvGy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