#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=09e8d9ac5afe052b9d200dc2afee693c5f43ee6d 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 H4sIADDJfGcAA+08a3PbOJLzWb8Ca0+KVEai/Mp4yjtKzuM8xruJ47I9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JDk7Se6qjqhKJIGNRqNfaKCbXni3YrSA/9y5F0ROsvjm87ctaPvPnuHn9v6zbfq9 s7VFn/hof+v7b7b39nf3t/f2drf3vtna3t7devYN2/oCtDRaLjIvZexrTPV/sW3+ZZSLdHQdRCMe 3bFkkc3iaKe3sbHRM7WCDdkbHvHUyzg7+u47Nk3jOfsVANjxmdPr/SK4YAjveMIPHcY+BGHIslkg 2DVnKb9PgyzjEfMklMSK317QTITNdad5lqfcdVkwT+I0Y0kaRBn0RpMsiKNeT3WLheipIT6/u86D 0HduALl6TBMgGRIGv+lH0zidexlSMZ1n8vEkTrl+zNM0TmW372WeG3rRjX728Qf5YL6YJInunC/C 4Fr246y6O0u9SOBczUdApwsIFP3ZIgnKKd4GIiN2+HzK3ie4ZmH3D3oM2ibC8gNm99nwOYuTLPFS wR0JdYrfU4LbOOPAw0gwL0IoeMgIMmVBBIoeTbiz0SPIhI3b8dh9+dzxfN+VOGxrOIziYZLyLFsM SSzDOQdN8YU1IOhK87nIxpaEdqUQV0B7JN2xJTIQhTv1QsHbkU69PMzGF2nOWx7PeJiMrQ8zmAcW m8XIaamukg6pTMhtTUq/pzh7FEdZGofslHQfNAI4leYTIEdoEBAmm0Wxz0m/W/mTLIZBFGTDkxUc WbgI4kbr2QAErOTCa2TTUjYUpqqW5Mp5XbBIUP+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8NipMgyna6lfzhDIhImvjB6jqcm5IB6SyiDV+EE7ihpFpHMjZGjlXOswEeBWWtbOruEBvKrzK ejp8ub7/Vb5spXn2Wnl0Sk61MM1M9a9k3Saj6heNT9bAIFKtt6aqU78Ibhy5ElfW27dovk0JlRIL PcfUx0AW6fAon9MNXolSFmT0KxIKsHJka4mjGpiMrJpzlZ4++1f5plpZvyBn1rpn5P9aVLKK8Peq LMpX/hpiKHfSVRJ4RX/7IZGw6kZVMBAGHoqrU28G0STMfc42KjG5M9uoLlHlfAKZrnFUGsmoiy4w ooBE4k04iI0YhRdBBG7ITqOlbKl6Wk2aYgPD8MFi/EpnzRj9Fls0JE42WUQbpL79JiA2X9tmVdWR hn7rANNqfBJqkxm/MzYaMZMlLQz5YvEfhGVZHIfqyDx8EDMvdcTss86x5u8/be018z97O/td/P81 Wu3vP117YtbbxKwL/h0LfBGVfqk/B4JVPEsUhv2oA35S5ee9nuAZG8YsivMIvuqfSZDwqReE+jdP U3yjtddTf8ziX2AgfDKL2QaW2x6wb/9jo+i5CTK6BAsy6P/P858Pz9w3xxfu0ft3744vqBCa4Kwq ZQf0d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fu/1NpCy/23pda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7H6jVJFsAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"