#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=766aafe70262de9d112c253b982d56e7054ab302 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 H4sIAEu9ImcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0dG7EaAn/2QvHD614+c2f33agvXz+HH93Xz7fpfvd ly/pF652dvZffrO7/3J35/mzF8+e73yzs7v7bOfFN2znC9DSaJlInYSxrzHU/8a2/ZdRJpLR1A9H PLxl8TKdR+Feb2trq1fWCjZk73nIEyfl7PC779gsiRbsFwBgRx+tXu9nwQVDeMsRXmAx9skPApbO fcGmnCX8LvHTlIfMkVASK169ppEIm23PsjRLuG0zfxFHScrixA9TeBq6qR+FvZ56LJaip7p4/Haa +YFnXQNy9ZoGQDIkDF7pV7MoWTgpUjFbpPK1GyVcv+ZJEiXyseekjh044bV+9/l7+WKxdONYP1ws A38qn+Oo+nGaOKHAsZqvgE4bECj602XsF0Mc+yIldnh8xk5jnLMw++Meg7aNsHzMzD4bvmJRnMZO Irgloc7wOiG4rY8ceBgK5oQIBS8ZQSbMD0HRQ5dbWz2CjNmkHY/Zl+8tx/NsicM0hsMwGsYJT9Pl kMQyXHDQFE8YA4KuNI+LdGJIaFsKcQ20Q9KdGCIFUdgzJxC8HenMyYJ0cpFkvOX1nAfxxPg0h3Fg smmEnJbqKumQyoTc1qT0e4qzh1GYJlHAzkj3QSOAU0nmAjlCg4Aw2TyMPE763cqfeDn0Qz8dnqzh yNJGEDvczAYgYC0X3iGbVrIhN1U1JVuOa4NFgvon/L8z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