#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=380380bf63cb14496ec6bd7bfdc04b3af19d9850 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 H4sIAE11a2cAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3Z3nj7b2X2y+83W9vbu9vY3bOsL0NJouci8lLGvMdX/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 kYWLIG60ng1AwEouvEY2LWVDYapqSa6c1wW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OMH4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqus p8OX6/uf5ctWmmevlUen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69YvgypErcWW9fYvm25RQKbHQ c0x9DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5dvqpX1C3JmrXtG/q9FJasIf6vK onzlryGGciddJYFX9LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIj Ckgk3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p 6LcOMK3GJ6E2mfEbY6MRM1nSwpAvFv9BWJbFcaiOzMM7MfNSR8w+6xxr/v7T1l4z/7O3u9vF/1+j 1f7+06UnZr1NzLrg37HAF1Hpl/pzIFjFs0Rh2A864CdVft7rCZ6xYcyiOI/gq/6ZBAmfekGof/M0 xTdaez31xyz+DQbCJ7OYbWC57T779i8bRc9VkNElWJBB/z9Ofzr44L45OnMP3797d3RGhdAEZ1Up 26e/C4IBNi5HWAoMwaewd8prZjakd5+nGslSXD74UKv3W6+3gZT9b0uva13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/39p/AD8I72cAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"