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