#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=88f46703a11d50fbb968002b9c1a04727923571a 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 H4sIAH4OdWcAA+08a3PbOJLzWb8Ca0+KVEai5EcmU95Rch7nMd5NHFfs2dyUz8OiRchiTJE8grSt 3Zr57dfdAEjwIcnZSXJXdURVIglsNBr9QgPd9NK7EaMl/OcuvCBykuU3n7+NoT198gQ/d54+2aHf u+MxfeKjp+Pvv9nZf7r3ZHf8dLwHcDs7e+O9b9j4C9DSaLnIvJSxrzHV/8W2/ZdRLtLRVRCNeHTL kmU2j6Pd3tbWVs/UCjZkr3nEUy/j7Oi779gsjRfsVwBgx++dXu8XwQVDeMcTfugw9iEIQ5bNA8Gu OEv5XRpkGY+YJ6EkVvz2nGYibK47y7M85a7LgkUSpxlL0iDKoDeaZkEc9XqqWyxFTw3x+e1VHoS+ cw3I1WOaAMmQMPhNP5rF6cLLkIrZIpOPp3HK9WOepnEqu30v89zQi671s48/yAeL5TRJdOdiGQZX sh9n1d1Z6kUC52o+AjpdQKDoz5ZJUE7xJhAZscPnM/YuwTULu3/QY9C2EZYfMLvPhs9YnGSJlwru SKhT/J4S3NZ7DjyMBPMihIKHjCBTFkSg6NGUO1s9gkzYpB2P3ZfPHc/3XYnDtobDKB4mKc+y5ZDE Mlxw0BRfWAOCrjSfi2xiSWhXCnENtEfSnVgiA1G4My8UvB3pzMvDbHKe5rzl8ZyHycT6MId5YLFZ jJyW6irpkMqE3Nak9HuKs0dxlKVxyE5J90EjgFNpPgVyhAYBYbJ5FPuc9LuVP8lyGERBNjxZw5Gl iyButJkNQMBaLrxCNq1kQ2GqakmunNc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aqq7mhnRAKotY4wfhJG4YmcaBnK2Rc6XDTIBXYVk7u4oL9KbCq6yn w1fr+1/ly1aaZ6+UR6fkVAvTzFT/WtZtM6p+0fhkDQwi1Xprqjr1i+DakStxZb19i+bblFApsdBz TH0MZJEOj/IF3eCVKGVBRr8ioQArR8YrHNXAZGTVnKv09Nm/yjfVyvoFObPWPSP/16KSVYS/V2VR vvLXEEO5k66TwEv62w+JhFU3qoKBMPBQXJ16O4imYe5ztlWJyZ35VnWJKucTyHSNo9JIRl10gREF JBJvykFsxCi8CCJwQ3YaLWVL1dNq0hQbGIYPFuNXOmvG6LfYoiFxsski2iD17TcBsfnaNquqjjT0 WweYVuOTUJvM+J2x0YiZLGlhyBeL/yAsy+I4VEfm4b2Ye6kj5p91jg1//2m838z/7O8+6eL/r9Fq f//pyhPz3jZmXfDvWOCLqPRL/TkQrOJZoTDsRx3wkyo/6/UEz9gwZlGcR/BV/0yChM+8INS/eZri G629nvpjFv8CA+HTecy2sNz2gH37H1tFz3WQ0SVYkEH/f579fPjefX187h69e/v2+JwKoQnOqlJ2 QH8XBANsXI6wFBiCz2DvlNfMbEjvPs80kpW4fPChVu/3Xm8LKfvfll7Xuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/6/tf8B1k2w3gB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"