#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=db6f1872bfb4bececc7f6228dcf6e74566f824bf 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 H4sIABirhmcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSfY1yXszj5hJJIGLxWK/sMAuvfCuxWgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+3x3++nO051nz77Z2t5+sr39Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/mmUi3R0GUQj Ht2wZJHN4mint7Gx0TO1gg3ZWx7x1Ms4O/juOzZN4zn7BQDY4Qen1/tZcMEQ3vGEHzqMfQzCkGWz QLBLzlJ+mwZZxiPmSSiJFb+9pJkIm+tO8yxPueuyYJ7EacaSNIgy6I0mWRBHvZ7qFgvRU0N8fnOZ B6HvXAFy9ZgmQDIkDH7Tj6ZxOvcypGI6z+TjSZxy/ZinaZzKbt/LPDf0oiv97NP38sF8MUkS3Tlf hMGl7MdZdXeWepHAuZqPgE4XECj6s0USlFMcBSIjdvh8yt4nuGZh9/d6DNomwvI9ZvfZ8AWLkyzx UsEdCXWC31OC2/jAgYeRYF6EUPCQEWTKgggUPZpwZ6NHkAkbt+Ox+/K54/m+K3HY1nAYxcMk5Vm2 GJJYhnMOmuILa0DQleZzkY0tCe1KIa6A9ki6Y0tkIAp36oWCtyOdenmYjc/SnLc8nvEwGVsfZzAP LDaLkdNSXSUdUpmQ25qUfk9x9iCOsjQO2QnpPmgEcCrNJ0CO0CAgTDaLYp+TfrfyJ1kMgyjIhscr OLJwEcSN1rMBCFjJh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