#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b18618b2eaee0fcd432f723d305bf6362aaf5f7e 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 H4sIAKTufGYAA+08/XPbNrL9WX8Fzm6GVCrRH3HijK5KznU+6neO44nd6+v4VA5NQhJjiuQjKNu6 m/Zvv90FQBIUJTnXJPdmjphJJJGLxWJ3sdgPwAvvRuycnZz9z5Er5teTzEunTrr45rO2XWjPDg7w c+/w6R793js8pE9oT3efPPlm7+DZk8O9Z4d7+H5vf/dw9xu2+3nJaG5zkXsZY19jqP+PbWtrq7No 1IEOvhpnyYy57niezzPuuiycpUmWszQL4xyexn4eJnFHgl3PwyjQEHEYf/TcKLyuvHOKhxoqSiY9 dvz+3fnJ6esPF+7fjj6cHJ1dXnQ6Lhviy05nm12+f/V+wMQ0mQP2qXfLWcBTHgc89kMu2F2YT+Gt ex3GXrbofPjp9PWFe/4L9Ldo0B0atJ/NIy766cIRU6vT6QR8zM7wxVucrZ3Nu4MOgxZDv2zuwJTw F3zzk9mMx7ltveUxz7ycB+x6wR4Jiz0CvsTeDLjSLaA9EUQ4vwxIsS3iK/5Hz60SzPcVuRUYN5vH eQjoci5ygLB6BG00mLgYXlk7O7OFn6Y7qoc1agCdeXkW3g+Xeauo2GY4KIPppWHEs47sE8Y0JWQe 0YRPLHpHbE6A77blSr6SwsjpPRI7eebFIgL+OPl9jswpkHWZJ9h40KlOAga4isKYOwKoTO0uGycZ wwcsjNl4JElMMz4O75EWd8JjGmnnkXBo7sYIBJ3M83SeE2bV8TtmER9Z5ffUGkk5OzQJW/UyGWjB cP0kjEQfyOrP4/C+JgycgvkE9DkK/TAH6aB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