#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=68f2299dd01032fc6d92aafd604c168d09526d49 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 H4sIAFn/bWcAA+08a3PbOJLzWb8Ca0+KVEai/Mp4yjtKzuM8xruJ44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaPvPnuHn9v6zbfq9 s7VFn/hof+v7b7b39nd3d/f3d/ehf3t7d3v3G7b1BWhptFxkXsrY15jq/2Lb/MsoF+noKohGPLpl ySKbxdFOb2Njo2dqBRuyNzziqZdxdvTdd2yaxnP2KwCw4w9Or/eL4IIhvOMJP3QY+xiEIctmgWBX nKX8Lg2yjEfMk1ASK357QTMRNted5lmectdlwTyJ04wlaRBl0BtNsiCOej3VLRaip4b4/PYqD0Lf uQbk6jFNgGRIGPymH03jdO5lSMV0nsnHkzjl+jFP0ziV3b6XeW7oRdf62acf5IP5YpIkunO+CIMr 2Y+z6u4s9SKBczUfAZ0uIFD0Z4skKKd4G4iM2OHzKXuf4JqF3T/oMWibCMsPmN1nw+csTrLESwV3 JNQpfk8JbuMDBx5GgnkRQsFDRpApCyJQ9GjCnY0eQSZs3I7H7svnjuf7rsRhW8NhFA+TlGfZYkhi Gc45aIovrAFBV5rPRTa2JLQrhbgC2iPpji2RgSjcqRcK3o506uVhNj5Pc97yeMbDZGx9nME8sNgs Rk5LdZV0SGVCbmtS+j3F2aM4ytI4ZKek+6ARwKk0nwA5QoOAMNksin1O+t3Kn2QxDKIgG56s4MjC RRA3Ws8GIGAlF14jm5ayoTBVtSRXzuuCRYL6p/y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