#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d3cb3c4b97c7213af6ad3aa3b7e94666a361dbca 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 H4sIALK/oWYAA+08bXPbuNH3Wb8CtS9DKidRtuO8jHpK6nNezm3ieGJfrzd+fByahCzGFMkSlG21 c/fbu7sASIKkJKd3SZ9piZlYErlYLPYNuwsgS+9ajPLMi8U0yeZOuvzq92870J7s7+Pn7tPHu/R7 9+lT+oRv+3uPH321u//k8c6jR08fP935amd399Hj/a/YzmegpdEWIvcyxr7EUP8f29bWVq8qfjZk +SKL2SyZJ1c85slCsDiMnjmeCCKW8TTjgsd5mMQsjPOEzXjOMw3ZW4I21SA9hO3hMNMsmTPXnS5g AO66LJynSZazNANE8DT2CVKBBfzmchFGgQOoHSTAJbSqT3zjRQs+UJ9u+S1v645UGd3td0mwiKDX CZCeefMBmycB9JkWX9x80GP3adf5MgVE9AGdmMjn6i/+uuZ3aXZvXEcxdDlLrnk8YKfhVewhowbs 2JvzM0DfV7yZL/00debLKLzUE4qSqwHLvStxG+b+TMEBSWF8pUF8TwD2t6HIez2XTbBLr9eDqbJ3 YALf8dPl/DKJbORjf0z0biMGPma25m2fDZ/D1DJ6G06J5w6MavfZHyaFLByJaVzMOfNCwdmBEDxD Cb/KsiSzrVd3KfdzHjAJPmBXSc4eCIs9IEx96p5xUkakXVHhaHACcoQxB5zd5hkg1Ll+crFhMgh8 76kg8L0nIoHlNMKcz/VUzrQ1Atps82yUivUI5IcTF18yOQF6BBoxK1VD4mOeQFJ4OTFgAD6wi3mD LvbHhtoqxNUpkMKqMfsGcJT4AEu6bFupl8+sAbP82SK+hi87A/ao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