#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=657ba876bd9513a3f444150214530c402867620a 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 H4sIAEsZGWcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0dG7EaAn/2QvHD614+c2f33agvXz+HH93Xz7fpfvd ly/pF652dvZffrO7/3Lnxd7u/rPnO9/s7O4+29n/hu18AVoaLROpkzD2NYb639i2/zLKRDKa+uGI h7csXqbzKNzrbW1t9cpawYbsPQ954qScHX73HZsl0YL9AgDs6KPV6/0suGAIbznCCyzGPvlBwNK5 L9iUs4TfJX6a8pA5EkpixavXNBJhs+1ZlmYJt23mL+IoSVmc+GEKT0M39aOw11OPxVL0VBeP304z P/Csa0CuXtMASIaEwSv9ahYlCydFKmaLVL52o4Tr1zxJokQ+9pzUsQMnvNbvPn8vXyyWbhzrh4tl 4E/lcxxVP04TJxQ4VvMV0GkDAkV/uoz9YohjX6TEDo/P2GmMcxZmf9xj0LYRlo+Z2WfDVyyK09hJ BLck1BleJwS39ZEDD0PBnBCh4CUjyIT5ISh66HJrq0eQMZu04zH78r3leJ4tcZjGcBhGwzjhaboc kliGCw6a4gljQNCV5nGRTgwJbUshroF2SLoTQ6QgCnvmBIK3I505WZBOLpKMt7ye8yCeGJ/mMA5M No2Q01JdJR1SmZDbmpR+T3H2MArTJArYGek+aARwKslcIEdoEBAmm4eRx0m/W/kTL4d+6KfDkzUc WdoIYoeb2QAErOXCO2TTSjbkpqqmZMtxbbBIUP+E/3fmJ2Cw/JYnSzbz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