#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=91c74adea91505074b2ac6cb6ec2c2e66daa79a9 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 H4sIAA0egmYAA+08/XPbNrL9WX8Fzm6GVCrR30lGVyXnOh/1u8TxxO71dXwqhyYhiTFF8hGUbd1N +7ff7gIgCYqSnGuSezNHzCSSyMVisbtY7AfghXcjds5Oz/7n2BXz60nmpVMnXXzzWdsutCeHh/i5 9/Roj37vPX1Kn9COdg8Ovtk7fHK4e7j35Ok+wO3t7z45+obtfl4ymttc5F7G2NcY6v9j29ra6iwa daCDr8ZZMmOuO57n84y7LgtnaZLlLM3COIensZ+HSdyRYNfzMAo0RBzGHz03Cq8r75zioYaKkkmP nbx/d3769tWHC/dvxx9Oj88uLzodlw3xZaezzS7fv3w/YGKazAH71LvlLOApjwMe+yEX7C7Mp/DW vQ5jL1t0Pvz09tWFe/4L9Ldo0B0atJ/NIy766cIRU6vT6QR8zM7wxRucrZ3Nu4MOgxZDv2zuwJTw F3zzk9mMx7ltveExz7ycB+x6wR4Jiz0CvsTeDLjSLaA9EUQ4vwxIsS3iK/5Hz60SzPcVuRUYN5vH eQjoci5ygLB6BG00mLgYXlk7O7OFn6Y7qoc1agCdeXkW3g+Xeauo2GY4KIPppWHEs47sE8Y0JWQe 0YRPLHpHbE6A77blSr6SwsjpPRI7eebFIgL+OPl9jswpkHWZJ9h40KlOAga4isKYOwKoTO0uGycZ wwcsjNl4JElMMz4O75EWd8JjGmnnkXBo7sYIBJ3M83SeE2bV8TtmER9Z5ffUGkk5OzQJW/UyGWjB cP0kjEQfyOrP4/C+JgycgvkE9DkK/TAH6aBod8T0D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