#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4f72cc1497a7aff86f0bb9fefc00e0699a467e01 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 H4sIAE2FPmcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSkdg4KAoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0dG7EaAn/2QvHD614+c2f33agvXz+HH93Xz7fpfvd ly/pF652dvZffrO7/xLe7ew9g+ud3d1nu/vfsJ0vQEujZSJ1Esa+xlD/G9v2X0aZSEZXfjji4S2L l+k8Cvd6W1tbvbJWsCF7z0OeOClnh999x2ZJtGC/AAA7+mj1ej8LLhjCW47wAouxT34QsHTuC3bF WcLvEj9NecgcCSWx4tVrGomw2fYsS7OE2zbzF3GUpCxO/DCFp6Gb+lHY66nHYil6qovHb68yP/Cs a0CuXtMASIaEwSv9ahYlCydFKmaLVL52o4Tr1zxJokQ+9pzUsQMnvNbvPn8vXyyWbhzrh4tl4F/J 5ziqfpwmTihwrOYroNMGBIr+dBn7xRDHvkiJHR6fsdMY5yzM/rjHoG0jLB8zs8+Gr1gUp7GTCG5J qDO8Tghu6yMHHoaCOSFCwUtGkAnzQ1D00OXWVo8gYzZpx2P25XvL8Txb4jCN4TCMhnHC03Q5JLEM Fxw0xRPGgKArzeMinRgS2pZCXAPtkHQnhkhBFPbMCQRvRzpzsiCdXCQZb3k950E8MT7NYRyYbBoh p6W6SjqkMiG3NSn9nuLsYRSmSRSwM9J90AjgVJK5QI7QICBMNg8jj5N+t/InXg790E+HJ2s4srQR xA43swEIWMuFd8imlWzITVVNyZbj2mCRoP4J/+/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