#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=bd957be9d0e9178f3bf5597207a3359b3fa6b827 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 H4sIAMCVhGYAA+08/XPbNrL9WX8Fzm6GVCrRH7GTjK5KznU+6neO44nd6+v4VA5NQhJjiuQjKNu6 m/Zvv90FQBIUJTnXJPdmjphJJJGLxWJ3sdgPwAvvRuycnZz9z5Er5teTzEunTrr45rO2XWhPDw7w c+/Z4R793nv2jD6hHe4+efLN3sHTg729vf1DfL63v/v08Bu2+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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