#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d2b0dc44d324c87bb622ecc920fa8cff52388340 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 H4sIAHw2d2cAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3afPN3d3drd+2Zre3t368k3bOsL0NJouci8lLGvMdX/xbb5p1Eu0tFlEI14 dMOSRTaLo53exsZGz9QKNmRveMRTL+Ps8Lvv2DSN5+wXAGBHH5xe72fBBUN4xxN+6DD2MQhDls0C wS45S/ltGmQZj5gnoSRW/PaCZiJsrjvNszzlrsuCeRKnGUvSIMqgN5pkQRz1eqpbLERPDfH5zWUe hL5zBcjVY5oAyZAw+E0/msbp3MuQiuk8k48nccr1Y56mcSq7fS/z3NCLrvSzT9/LB/PFJEl053wR BpeyH2fV3VnqRQLnaj4COl1AoOjPFklQTvE2EBmxw+dT9j7BNQu7v99j0DYRlu8zu8+Gz1mcZImX Cu5IqBP8nhLcxgcOPIwE8yKEgoeMIFMWRKDo0YQ7Gz2CTNi4HY/dl88dz/ddicO2hsMoHiYpz7LF kMQynHPQFF9YA4KuNJ+LbGxJaFcKcQW0R9IdWyIDUbhTLxS8HenUy8NsfJbmvOXxjIfJ2Po4g3lg sVmMnJbqKumQyoTc1qT0e4qzh3GUpXHITkj3QSOAU2k+AXKEBgFhslkU+5z0u5U/yWIYREE2PF7B kYWLIG60ng1AwEouvEY2LWVDYapqSa6c1wWLBPV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URgc KTK8NipMgyna6lfzhDIhImvjB6jqcm5IB6SyiDV+EE7ihpFpHMjZGjlXOswEeBWWtbOruEBvKrzK ejp8ub7/Wb5spXn2Wnl0Sk61MM1M9a9k3Saj6heNT9bAIFKtt6aqU78Irhy5ElfW27dovk0JlRIL PcfUx0AW6fAon9MNXolSFmT0KxIKsHJka4mjGpiMrJpzlZ4++3f5plpZvyBn1rpn5P9aVLKK8Leq LMpX/hpiKHfSVRJ4RX/7IZGw6kZVMBAGHoqrU28G0STMfc42KjG5M9uoLlHlfAKZrnFUGsmoiy4w ooBE4k04iI0YhRdBBG7ITqOlbKl6Wk2aYgPD8MFi/EpnzRj9Fls0JE42WUQbpL79JiA2X9tmVdWR hn7rANNqfBJqkxm/MTYaMZMlLQz5YvEfhGVZHIfqyDy8EzMvdcTss86x5u8/be018z97O8+6+P9r tNrff7r0xKy3iVkX/DsW+CIq/VJ/DgSreJYoDPtBB/ykys97PcEzNoxZFOcRfNU/kyDhUy8I9W+e pvhGa6+n/pjFv8FA+GQWsw0st91n3/5lo+i5CjK6BAsy6P/H6U8HH9w3R2fu4ft3747OqBCa4Kwq Zfv0d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fuv1NpCy/23pda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7D5reacUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"