#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4320bce832473e48ba661f11d03f5bc7520b81b1 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 H4sIAHyiJ2cAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d1/u7e7sQf/u7rOd/W/YzhegpdEykToJY19jqv+Nbfsvo0wko6kfjnh4 y+JlOo/Cvd7W1lavrBVsyN7zkCdOytnhd9+xWRIt2C8AwI4+Wr3ez4ILhvCWI7zAYuyTHwQsnfuC TTlL+F3ipykPmSOhJFb89ppmImy2PcvSLOG2zfxFHCUpixM/TKE3dFM/Cns91S2WoqeGePx2mvmB Z10DcvWYJkAyJAx+049mUbJwUqRitkjlYzdKuH7MkyRKZLfnpI4dOOG1fvb5e/lgsXTjWHculoE/ lf04q+5OEycUOFfzEdBpAwJFf7qM/WKKY1+kxA6Pz9hpjGsWZn/cY9C2EZaPmdlnw1csitPYSQS3 JNQZfk8IbusjBx6GgjkhQsFDRpAJ80NQ9NDl1laPIGM2acdj9uVzy/E8W+IwjeEwjIZxwtN0OSSx DBccNMUTxoCgK83jIp0YEtqWQlwD7ZB0J4ZIQRT2zAkEb0c6c7IgnVwkGW95POdBPDE+zWEeWGwa Iaeluko6pDIhtzUp/Z7i7GEUpkkUsDPSfdAI4FSSuUCO0CAgTDYPI4+TfrfyJ14O/dBPhydrOLK0 EcQON7MBCFjLhXfIppVsyE1VLcmW89pgkaD+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WFCWO5GleExWmwRRt +ut5QukQkbbxA1R1NTekF1KpxBo/CCdxo5RuHMjZGolXOhj6eB+WtrMrv0VvKrxKfVp8tb7/Vb4Q p3n2Trl1ylC1MK2c71/Lum1GJTAanyyEQaRab8uqTv3Cv7bkSmxZdN+i+SZlVQos9BzzHwNZqcPD bEHXeAVKWZXRr0jIx/KRnRWOalBmZNWcq/T02T+KtwmLIgY5s9a9UhKwRSWrCH+ryqJ4fbMhhmI7 XSeBt/QHQGIJq65VBQNh4AVDdeptP3SDzONsq3JGsOZb1SWqxI8vczaWyiWViqNzjCggETsuB7ER o/AiicBLstNoKWWqnlYzp9jAMDywGK/SWTNGr8UWSxInm8xDDlLffhMQm6dts6rqSEO/dUDZajwS apMZvzE2GrEyS1oY8iXiPwjL0igK1MF9eC/mTmKJ+Z86x/q//4V//utFPf+z/+xFF/9/jVb7+19T R8x725h1wb9jgu8J0y/152CwimeFwrAfdMBPWvyq1xM8ZcOIhVEWwlf9M/ZjPnP8QP/mSYIvHPd6 6o+Z/ANsg7vziG1hue2YfftvW3nPtZ/SVZyfQv9/nv908NF+f3RhH55++HB0QYXQBGdUKRvT34XB 2BqXIwwFhuAz2DblDTUb0ivsM41kJS4P3KfR+63X20LK/tXS61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/x/b/wAmBBVWAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"