#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a6736c61bfc29bcad18012c2f2c75380f226aa0a 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 H4sIAKZ4FGcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0dG7EaAn/2QvHD614+c2f33agvXz+HH93Xz7fpfvd ly/pF652dvZffrO7/3Ln+c7L/d2dZ9/s7O4+gx+28wVoabRMpE7C2NcY6n9j2/7LKBPJaOqHIx7e sniZzqNwr7e1tdUrawUbsvc85ImTcnb43XdslkQL9gsAsKOPVq/3s+CCIbzlCC+wGPvkBwFL575g U84Sfpf4acpD5kgoiRWvXtNIhM22Z1maJdy2mb+IoyRlceKHKTwN3dSPwl5PPRZL0VNdPH47zfzA s64BuXpNAyAZEgav9KtZlCycFKmYLVL52o0Srl/zJIkS+dhzUscOnPBav/v8vXyxWLpxrB8uloE/ lc9xVP04TZxQ4FjNV0CnDQgU/eky9oshjn2REjs8PmOnMc5ZmP1xj0HbRlg+ZmafDV+xKE5jJxHc klBneJ0Q3NZHDjwMBXNChIKXjCAT5oeg6KHLra0eQcZs0o7H7Mv3luN5tsRhGsNhGA3jhKfpckhi GS44aIonjAFBV5rHRToxJLQthbgG2iHpTgyRgijsmRMI3o505mRBOrlIMt7yes6DeGJ8msM4MNk0 Qk5LdZV0SGVCbmtS+j3F2cMoTJMoYGek+6ARwKkkc4EcoUFAmGweRh4n/W7lT7wc+qGfDk/WcGRp I4gdbmYDELCWC++QTSvZkJuqmpItx7XBIkH9E/7fmZ+AwfJb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