#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=96278c25f4a430c91aab664267deca0272f30024 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 H4sIAG4GbmcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3Z397Z2t7affrO1vb3z7Ok3bOsL0NJouci8lLGvMdX/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 kYWLIG60ng1AwEouvEY2LWVDYapqSa6c1wWLBPVP+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KdrqV/OEMiEia+MHqOpybkgHpLKINX4QTuKGkWkcyNkaOVc6zAR4FZa1s6u4QG8qvMp6 Ony5vv9ZvmylefZaeXRKTrUwzUz1r2TdJqPqF41P1sAgUq23pqpTvwiuHLkSV9bbt2i+TQmVEgs9 x9THQBbp8Cif0w1eiVIWZPQrEgqwcmRriaMamIysmnOVnj77d/mmWlm/IGfWumfk/1pUsorwt6os ylf+GmIod9JVEnhFf/shkbDqRlUwEAYeiqtTbwbRJMx9zjYqMbkz26guUeV8ApmucVQayaiLLjCi gETiTTiIjRiFF0EEbshOo6VsqXpaTZpiA8PwwWL8SmfNGP0WWzQkTjZZRBukvv0mIDZf22ZV1ZGG fusA02p8EmqTGb8xNhoxkyUtDPli8R+EZVkch+rIPLwTMy91xOyzzrHm7z9t7TXzP3s7W138/zVa 7e8/XXpi1tvErAv+HQt8EZV+qT8HglU8SxSG/aADflLl572e4BkbxiyK8wi+6p9JkPCpF4T6N09T fKO111N/zOLfYCB8MovZBpbb7rNv/7JR9FwFGV2CBRn0/+P0p4MP7pujM/fw/bt3R2dUCE1wVpWy ffq7IBhg43KEpcAQfAp7p7xmZkN693mqkSzF5YMPtXq/9XobSNn/tvS61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuvb/rf0HyB2V1AB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"