#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=8a4fcaabc0ea80c4832853acdec4e4082252bab5 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 H4sIAMF6mGYAA+08a3PbOJLzWb8Ca0+KVEaibMdJpryj5DzOY3zn2K7Ys7kpn4dFi5DFmCJ5BGhb uzXz26+7AfAtyd6ZZK9qiapEEthoNPqFBrrphXcjRgv4z517QeQki2/+/LYF7eXz5/i5/fL5Nv3e fvmSPuHb1tbuy2+2d1/svgConS3o395+tv38G7b1BWhptExIL2Xsa0z1/7Ft/mWUiXR0FUQjHt2y ZCFncbTT29jY6JW1gg3Zex7x1JOcHXz3HZum8Zz9AgDs8KPT6/0suGAI73jCDx3GPgVhyOQsEOyK s5TfpYGUPGKeglJY8dtrmomwue40k1nKXZcF8yROJUvSIJLQG01kEEe9nu4WC9HTQ3x+e5UFoe9c A3L9mCZAMhQMfjOPpnE69yRSMZ1L9XgSp9w85mkap6rb96Tnhl50bZ59/l49mC8mSWI654swuFL9 OKvplqkXCZyr+QjodAGBpl8ukqCY4igQktjh8yk7SXDNwu7v9Ri0TYTle8zus+ErFicy8VLBHQV1 it9Tgtv4yIGHkWBehFDwkBFkyoIIFD2acGejR5AJG7fjsfvqueP5vqtw2NZwGMXDJOVSLoYkluGc g6b4whoQdKX5XMixpaBdJcQV0B5Jd2wJCaJwp14oeDvSqZeFcnyeZrzl8YyHydj6NIN5YLEyRk4r dVV0KGVCbhtS+j3N2YM4kmkcslPSfdAI4FSaTYAcYUBAmGwWxT4n/W7lT7IYBlEgh8crOLJwEcSN 1rMBCFjJhXfIpqVsyE1VL8lV87pgkaD+Kf/fLEjBYPktTxds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DYqTIMpxvRX 84TSIUK28QNUdTk3lBfSqcQaPwgncaOUbhyo2RqJVzowBngfJtvZld+iNxVepz4dvlzf/6peiDM8 e6fdOmWoWphWzvevZN0moxIYg08VwiBSo7dlVad+EVw7aiWuKrpv0XybsioFFnqO+Y+BqtThUTan a7wCparK6FckFGD5yNYSRzUoM7JqzlV6+uwfxduERRGDmtnoXikJ2KKSVYS/VWVRvL7ZEEOxna6S wFv6AyCJgtXXqoKBMPDioTr1ZhBNwsznbKNydnBmG9Ul6sRPoHI2js4llYqjc4woIJF4Ew5iI0bh BROBl2Rn0FLKVD+tZk6xgWH4YDF+pbNmjH6LLZYkTjaZhxykvv0mIDbf2GZV1ZGGfuuAstX4JNQm M35jbDRiZZa0MORLxH8Qlsk4DvWBfngvZl7qiNmfOsfqv/+Ff/7rRT3/s7v7sov/v0ar/f2vK0/M epuYdcG/Y4LvCdMv/edgsIpnicKwH0zAT1r8qtcTXLJhzKI4i+Cr+ZkECZ96QWh+8zTFF457Pf3H TP4BtsEns5htYLntHvv2PzbynutA0hVdIKH/v89+2v/ovj88dw9OPnw4PKdCaIKzqpTt0d+Fwdga lyMsDYbgU9g21c01G9Ir7FODZCkuH9yn1fut19tAyv7V0uta17rWta51rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta/+O7f8AaVk7AwB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"