#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=fcb54c39d09365abf77eba7976c197e42fe67b4f 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 H4sIAN8vgGYAA+08/XPbNrL9WX8Fzm6GVCrRH3E+Rlcl5zof9bvE8dju9XV8KocmIYkxRfIRlG3d Tfu33+4CIAmKkuxrknszR8wkksjFYrG7WOwH4IV3LXZOjk/+59AV86tJ5qVTJ11881nbLrRnBwf4 uff86R793nv+nD6hPd198uSbvYNnB7u7+88Jbm8f4L9hu5+XjOY2F7mXMfY1hvr/2La2tjqLRh3o 4KtxlsyY647n+TzjrsvCWZpkOUuzMM7haeznYRJ3JNjVPIwCDRGH8SfPjcKryjuneKihomTSY0cf P5wev39zdu7+7fDs+PDk4rzTcdkQX3Y62+zi4+uPAyamyRywT70bzgKe8jjgsR9ywW7DfApv3asw 9rJF5+yn92/O3dNfoL9Fg+7QoP1sHnHRTxeOmFqdTifgY3aCL97hbO1s3h10GLQY+mVzB6aEv+Cb n8xmPM5t6x2PeeblPGBXC/ZIWOwR8CX2ZsCVbgHtiSDC+WVAim0RX/E/em6VYL6vyK3AuNk8zkNA l3ORA4TVI2ijwcTF8NLa2Zkt/DTdUT2sUQPozMuz8G64zFtFxTbDQRlMLw0jnnVknzCmKSHziCZ8 YtE7YnMCfLctV/KVFEZO75HYyTMvFhHwx8nvcmROgazLPMHGg051EjDAZRTG3BFAZWp32TjJGD5g YczGI0limvFxeIe0uBMe00g7j4RDczdGIOhknqfznDCrjt8xi/jIKr+n1kjK2aFJ2KqXyUALhusn YST6QFZ/Hod3NWHgFMwnoM9R6Ic5SAdFuyOmt6BYUk6Siz2mVbMmrh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