#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=27de2dd623570da3836db956259ef385fb7c892e 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 H4sIAAF+xmYAA+08a3PbRpL5zF8xK8UF0CFBvWyltKF9ivyI7mRJZSnrS+kUFAgMRVgggMMAkrhb yW+/7p4ZvElKm9h7VYupsolHT09Pv6ZnuqGFcytGC/jPnjt+aMWLb/78tgVt/8UL/N3ef7FN99v7 +/QLV1tbe/vfbO+9fLm9t/8S2jdb29u7u1vfsK0vQEujZSJ1Esa+xlD/H9vmX0aZSEYTPxzx8I7F i3QWhTu9jY2NXlkr2JC95yFPnJSzo+++Y9MkmrNfAIAdf7R6vZ8FFwzhLUd4gcXYJz8IWDrzBZtw lvD7xE9THjJHQkmsePWaRiJstj3N0izhts38eRwlKYsTP0zhaeimfhT2euqxWIie6uLxu0nmB551 A8jVaxoAyZAweKVfTaNk7qRIxXSeytdulHD9midJlMjHnpM6duCEN/rd5+/li/nCjWP9cL4I/Il8 jqPqx2nihALHar4COm1AoOhPF7FfDHHii5TY4fEpO4txzsLsH/QYtE2E5QfM7LPhKxbFaewkglsS 6hyvE4Lb+MiBh6FgTohQ8JIRZML8EBQ9dLm10SPImI3b8Zh9+d5yPM+WOExjOAyjYZzwNF0MSSzD OQdN8YQxIOhK87hIx4aEtqUQV0A7JN2xIVIQhT11AsHbkU6dLEjHl0nGW17PeBCPjU8zGAcmm0bI aamukg6pTMhtTUq/pzh7FIVpEgXsnHQfNAI4lWQukCM0CAiTzcLI46TfrfyJF0M/9NPh6QqOLGwE scP1bAACVnLhHbJpKRtyU1VTsuW4NlgkqH/C/zfzEzBYfseTBZv6PPA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