#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3775f6a9d1c33d1b7ad5c338e79f4ae55c4f4a7c 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 H4sIAMC1dmcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3afPNndebILcNvbu9vb37CtL0BLo+Ui81LGvsZU/xfb5p9GuUhHl0E04tEN SxbZLI52ehsbGz1TK9iQveERT72Ms8PvvmPTNJ6zXwCAHX1wer2fBRcM4R1P+KHD2McgDFk2CwS7 5Czlt2mQZTxinoSSWPHbC5qJsLnuNM/ylLsuC+ZJnGYsSYMog95okgVx1OupbrEQPTXE5zeXeRD6 zhUgV49pAiRDwuA3/Wgap3MvQyqm80w+nsQp1495msap7Pa9zHNDL7rSzz59Lx/MF5Mk0Z3zRRhc yn6cVXdnqRcJnKv5COh0AYGiP1skQTnF20BkxA6fT9n7BNcs7P5+j0HbRFi+z+w+Gz5ncZIlXiq4 I6FO8HtKcBsfOPAwEsyLEAoeMoJMWRCBokcT7mz0CDJh43Y8dl8+dzzfdyUO2xoOo3iYpDzLFkMS y3DOQVN8YQ0IutJ8LrKxJaFdKcQV0B5Jd2yJDEThTr1Q8HakUy8Ps/FZmvOWxzMeJmPr4wzmgcVm MXJaqqukQyoTcluT0u8pzh7GUZbGITsh3QeNAE6l+QTIERoEhMlmUexz0u9W/iSLYRAF2fB4BUcW LoK40Xo2AAErufAa2bSUDYWpqiW5cl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