#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a541a637b08a4951e3aeb6a6ab26a6613bf52c40 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 H4sIANg0iWcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+3x3Z+fJzvaz3W+2trefbO18w7a+AC2NlovMSxn7GlP9X2ybfxrlIh1dBdGI R7csWWSzONrpbWxs9EytYEP2lkc89TLODr77jk3TeM5+AQB2eOr0ej8LLhjCO57wQ4exD0EYsmwW CHbFWcrv0iDLeMQ8CSWx4reXNBNhc91pnuUpd10WzJM4zViSBlEGvdEkC+Ko11PdYiF6aojPb6/y IPSda0CuHtMESIaEwW/60TRO516GVEznmXw8iVOuH/M0jVPZ7XuZ54ZedK2fffxePpgvJkmiO+eL MLiS/Tir7s5SLxI4V/MR0OkCAkV/tkiCcoqjQGTEDp9P2fsE1yzs/l6PQdtEWL7H7D4bvmBxkiVe KrgjoU7we0pwG6cceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+DzNecvjGQ+TsfVhBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+IoS+OQnZDug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLyC IwsXQdxoPRuAgJVceINsWsqGwlTVklw5rwsWCeqf8n/mQQoGy295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