#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6bc0ab0649285d54c106c1c5f4629409e0af9915 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 H4sIABvDJWcAA+08a3PbRpL5zF8xK8UF0CFBSZatlDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37ag7b18ib/bey+36X57 b49+4Wpra3fvm+3dve3tF7vbO3vwHq62XnzDtr4ALY2WidRJGPsaQ/1vbJt/GWUiGU38cMTDOxYv 0lkU7vQ2NjZ6Za1gQ/aBhzxxUs4Ov/uOTZNozn4BAHZ0bvV6PwsuGMJbjvACi7FPfhCwdOYLNuEs 4feJn6Y8ZI6Ekljx6g2NRNhse5qlWcJtm/nzOEpSFid+mMLT0E39KOz11GOxED3VxeN3k8wPPOsG kKvXNACSIWHwSr+aRsncSZGK6TyVr90o4fo1T5IokY89J3XswAlv9LvP38sX84Ubx/rhfBH4E/kc R9WP08QJBY7VfAV02oBA0Z8uYr8Y4tgXKbHD41N2GuOchdnf7zFomwjL95nZZ8PXLIrT2EkEtyTU GV4nBLdxzoGHoWBOiFDwkhFkwvwQFD10ubXRI8iYjdvxmH353nI8z5Y4TGM4DKNhnPA0XQxJLMM5 B03xhDEg6ErzuEjHhoS2pRBXQDsk3bEhUhCFPXUCwduRTp0sSMeXScZbXs94EI+NTzMYByabRshp qa6SDqlMyG1NSr+nOHsYhWkSBeyMdB80AjiVZC6QIzQICJPNwsjjpN+t/IkXQz/00+HJCo4sbASx w/VsAAJWcuE9smkpG3JTVVOy5bg2WCSof8L/O/MTMFh+x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