#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=dc4f811557717e2d7405a9cb0d2b88b3a906c0fc 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 H4sIAJ4ONGcAA+08/XPbNrL9WX8Fzm6GVCpRtmM3HV+VPNf5qN9zbI/tXl7H53IoErIYUyQfQdrW 3bR/+9tdAPyWZF+b3M0dMZNIAheLxX5hgV164dyK0QL+s+eOH1rx4qs/vm1Be7m3h5/bL/e26ff2 y5f0Cd+2tnZffrW9+3J7D8C2Xu58tbW9/WJr7yu29RloabRMpE7C2JeY6l+xbf5plIlkNPHDEQ/v WLxIZ1G409vY2OiVtYIN2Xse8sRJOTv85hs2TaI5+xkA2NG51ev9JLhgCG85wgssxj76QcDSmS/Y hLOE3yd+mvKQORJKYsVvr2kmwmbb0yzNEm7bzJ/HUZKyOPHDFHpDN/WjsNdT3WIhemqIx+8mmR94 1g0gV49pAiRDwuA3/WgaJXMnRSqm81Q+dqOE68c8SaJEdntO6tiBE97oZ5++kw/mCzeOded8EfgT 2Y+z6u40cUKBczUfAZ02IFD0p4vYL6Y49kVK7PD4lJ3GuGZh9vd7DNomwvJ9ZvbZ8BWL4jR2EsEt CXWG3xOC2zjnwMNQMCdEKHjICDJhfgiKHrrc2ugRZMzG7XjMvnxuOZ5nSxymMRyG0TBOeJouhiSW 4ZyDpnjCGBB0pXlcpGNDQttSiCugHZLu2BApiMKeOoHg7UinThak48sk4y2PZzyIx8bHGcwDi00j 5LRUV0mHVCbktial31OcPYzCNIkCdka6DxoBnEoyF8gRGgSEyWZh5HHS71b+xIuhH/rp8GQFRxY2 gtjhejYAASu58A7ZtJQNuamqJdlyXhssEtQ/4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