#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0b0108b060209954deedff106ee2323b539f3932 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 H4sIAKcpl2YAA+08a3PbRpL5zF8xK8UF0CFBSZbklDa0T5Ef0Z0tqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21Be763h7/bz/e26X77 +XP6hautrd3n32zv7u/u7e/s7u3tfrO1vf1sZ/sbtvUFaGm0TEgvZexrDPX/sW3+ZZSJdHQdRCMe 3bFkIWdxtNPb2NjolbWCDdlbHvHUk5wdffcdm6bxnP0CAOz4g9Pr/Sy4YAjveMIPHcY+BmHI5CwQ 7JqzlN+ngZQ8Yp6CUljx6iWNRNhcd5rJLOWuy4J5EqeSJWkQSXgaTWQQR72efiwWoqe7+PzuOgtC 37kB5Po1DYBkKBi8Mq+mcTr3JFIxnUv1ehKn3LzmaRqn6rHvSc8NvejGvPv0vXoxX0ySxDycL8Lg Wj3HUc1jmXqRwLGar4BOFxBo+uUiCYoh3gVCEjt8PmWnCc5Z2P2DHoO2ibD8gNl9NnzB4kQmXiq4 o6DO8DoluI0PHHgYCeZFCAUvGUGmLIhA0aMJdzZ6BJmwcTseu6/eO57vuwqHbQ2HUTxMUi7lYkhi Gc45aIovrAFBV5rPhRxbCtpVQlwB7ZF0x5aQIAp36oWCtyOdelkoxxdpxltez3iYjK2PMxgHJitj 5LRSV0WHUibktiGl39OcPYojmcYhOyPdB40ATqXZBMgRBgSEyWZR7HPS71b+JIthEAVyeLKCIwsX QdxoPRuAgJVceINsWsqG3FT1lFw1rgsWC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XkinEmv8IJzEjVK6caBGayReacMY4HmYbGdXforeVHid+nT4cn3/ q/ogzvDsjXbrlKFqYVo537+SdZuMSmAMPlUIg0iN3pZVnZ6L4MZRM3FV0X2L5tuUVSmw0HvMfwxU pQ6Psjkd4xUoVVVGvyKhAMtHtpY4qkGZkVVzrtLTZ/8oviYsihjUyEb3SknAFpWsIvytKovi882G GIrldJUEXtMfAEkUrD5WFQyEgQcP1aE3g2gSZj5nG5W9gzPbqE5RJ34ClbNxdC6pVBydY0QBicSb cBAbMQoPmAi8JDuDllKm+m01c4oNDMMHi/ErD2vG6LfYYkniZJN5yEHq228CYvONbVZVHWnot3Yo W41PQm0y4zfGRiNWZkkLQ75E/AdhmYzjUG/ohw9i5qWOmP2pY6z++1/457/26/mf3b1nXfz/NVrt 739de2LW28SsC/4dE/xOmO70n4PBKp4lCsN+MAE/afGLXk9wyYYxi+IsgktzmwQJn3pBaO55muIH x72e/mMm/wDb4JNZzDaw3PaAffsfG/mTm0DSEV0g4fl/n/90+MF9e3zhHp2+f398QYXQBGdVKTug vwuDsTVOR1gaDMGnsGyqk2s2pE/YpwbJUlw+uE+r91uvt4GU/aul17Wuda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/h3b/wF3rYhTAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"