#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=18ddc70eb4f1d99165051d23a27f0de35a46cc6b 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 H4sIAHcux2cAA+08a3PbOJL5rF+BtSdFKiNRsuM8SjtKzuM8xneJ44o9Ozfl1bBoErIYUySPoGxr t2Z++3U3AJKgKMm5SbJXd0RVLIlsNPqNBtDI0rsWgzzzYjFNsrmTLh98+TaE9vTgAD/3nj3Zo9/7 wyF9wqOD/SePH+wdPHu693T/2XD/6YPh3t7jg+EDNvwKtKy0hci9jLFvMdT/xrazs9Opqp/1Wb7I YjZL5skVj3myECwOo+eOJ4KIZTzNuOBxHiYxC+M8YTOe80xDdpZgTTVID2E7OMw0S+bMdacLGIC7 LgvnaZLlLM0AETyNfYJUYAG/uVyEUeAAagcJcAmt6hPfeNGC99SnW37Lm7ojVUZ3+30SLCLodQqk Z968x+ZJAH2mxRc373XYfdp1vkwBEX1AJybyufqLv675XZrdG9dxDF3Ok2se99hZeBV7KKgeO/Hm /BzQd5Vs5ks/TZ35MgovNUNRctVjuXclbsPcnyk4ICmMrzSI7wnA/i4UeafjsjF26XQ6wCp7Dy7w Iz9bzi+TyEY5dkdE7y5i4CNma9l2Wf8FsJbR23BKMndgVLvL/jIudOFITKOC58wLBWeHQvAMNfw6 y5LMtl7fpdzPecAkeI9dJTl7KCz2kDB1qXvGyRiRdkWFo8EJyBEGD8jddg4Q6kI/mWxhBoHvzQoC 35sRCSzZCHM+16yca28EtNl2bpSJdQjk51MXXzLJAD0Ci5iVpiHxMU8gKbxkDASAD+yCb7DF7sgw W4W4ygIZrBqzawBHiQ+wZMu2lXr5zOoxy58t4mv4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