#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=57a172ea763fb9755a11e89ac71e3ccfdc66f07d 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 H4sIAJQBr2YAA+08/XPbNrL9WX8Fzm6GVCpRsuMkHV2VnOt81O8SxxO719fxUzk0CVmMKZKPoGzr btq//XYXAElQlGRfm7w3U2KmsUQuFovdxX5h1aV3LQZXPHb9NHXS5VefYwxhPDs4wL97z5/u0fe9 58/pL4yDZ08PvtqDf588Gw6fPtn/arg3fP50/ys2/CzU1MZC5F7G2JdY6v/j2NnZ6ZTiZ32WL7KY LUErHE8EEct4mnHB49zLwyRmYZwn7Oibbzo4b5olc+a60wXM4a7LwnmaZDlLM4CCp7GPUzoKLOA3 l4swChxYzUH8LuFXc+zTLLnKvHmPzZMAYKfFB5f32HW+THmvw+4zCLaY5OY9duLN+TkiYCKf5/Jf 977oCBgmHcfwzzW/SzPCTR/k467c4HwJLNTbmS+j8LLy3KEH+m3uXYnbMPdnPRYlV4pBQG0YX2kQ 3xN5p+OysYToACPYWx7jNmyA7LFpd0Qb2MWJfMTsYru0lPNTFuY867L+C3aSxLxDwD+eugAFSOFf egBUzEpyEHOXeQJX56OCP+GUHqgVuIN7Hhncmzq3uJxtgeCtbqd4x6P63LM8Wzf3+/AK3j7ePP9d KOqLyx0hwyQUwfTUXrvNayHId5b5ssJe5xwZ3Dz1RY3CKqdwZF4oODsUgmeo/q+zLMmIsaUUTz3Q dLtJiKWqbpCiJjR1lCZ0DALZIwH/sdSJAVll1degsjbqbZPyaH3erDwIBbzGP03qg8836Y88PQ36 o/CSDOmgqbXWiOBRgBtEACfsPlQUFY6cgVHjc7BtNir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