#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c7dfacc7e755ac7ce11f377d5a86e83089079b91 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 H4sIABWwfWYAA+08/XPbNrL9WX8Fzm6GVCrRn4kzuio51/mo3yWOJ3avr+NTOTQJSYwpko+gbOtu 2r/9dhcASVCU5FyT3Js5YiaRRC4Wi93FYj8AL7wbsXN2evY/x66YX08yL5066eKbz9p2oT09PMTP vaMne/R77+iIPqE92T04+Gbv8OnB0cH+0RF8393b3z06/Ibtfl4ymttc5F7G2NcY6v9j29ra6iwa daCDr8ZZMmOuO57n84y7LgtnaZLlLM3COIensZ+HSdyRYNfzMAo0RBzGHz03Cq8r75zioYaKkkmP nbx/d3769tWHC/dvxx9Oj88uLzodlw3xZaezzS7fv3w/YGKazAH71LvlLOApjwMe+yEX7C7Mp/DW vQ5jL1t0Pvz09tWFe/4L9Ldo0B0atJ/NIy766cIRU6vT6QR8zM7wxRucrZ3Nu4MOgxZDv2zuwJTw F3zzk9mMx7ltveExz7ycB+x6wR4Jiz0CvsTeDLjSLaA9EUQ4vwxIsS3iK/5Hz60SzPcVuRUYN5vH eQjoci5ygLB6BG00mLgYXlk7O7OFn6Y7qoc1agCdeXkW3g+Xeauo2GY4KIPppWHEs47sE8Y0JWQe 0YRPLHpHbE6A77blSr6SwsjpPRI7eebFIgL+OPl9jswpkHWZJ9h40KlOAga4isKYOwKoTO0uGycZ wwcsjNl4JElMMz4O75EWd8JjGmnnkXBo7sYIBJ3M83SeE2bV8TtmER9Z5ffUGkk5OzQJW/UyGWjB cP0kjEQfyOrP4/C+JgycgvkE9DkK/TAH6aBod8T0DhRLyklysce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