#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=490ed305c75fe4d7f26ef97286f9b8c36dd66d86 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 H4sIAI2DMWcAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdrbw9/tV3vbdL/9 6hX9wtXW1u6rb7Z3X23vvtja3oXrre3tF1uvvmFbX4CWRstE6iSMfY2h/je2zb+MMpGMJn444uEd ixfpLAp3ehsbG72yVrAh+8BDnjgpZ4fffcemSTRnvwAAOzq3er2fBRcM4S1HeIHF2Cc/CFg68wWb cJbw+8RPUx4yR0JJrHj1hkYibLY9zdIs4bbN/HkcJSmLEz9M4Wnopn4U9nrqsViInuri8btJ5gee dQPI1WsaAMmQMHilX02jZO6kSMV0nsrXbpRw/ZonSZTIx56TOnbghDf63efv5Yv5wo1j/XC+CPyJ fI6j6sdp4oQCx2q+AjptQKDoTxexXwxx7IuU2OHxKTuNcc7C7O/3GLRNhOX7zOyz4WsWxWnsJIJb EuoMrxOC2zjnwMNQMCdEKHjJCDJhfgiKHrrc2ugRZMzG7XjMvnxvOZ5nSxymMRyG0TBOeJouhiSW 4ZyDpnjCGBB0pXlcpGNDQttSiCugHZLu2BApiMKeOoHg7UinThak48sk4y2vZzyIx8anGYwDk00j 5LRUV0mHVCbktial31OcPYzCNIkCdka6DxoBnEoyF8gRGgSEyWZh5HHS71b+xIuhH/rp8GQFRxY2 gtjhejYAASu58B7ZtJQNuamqKdlyXBssEtQ/4f+d+QkYLL/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