#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=951276799cedb463040b225675bfb27a71a64e71 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 H4sIAJ5ta2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSfY1yXszj5hJJIGLxWK/sMAuvfCuxWgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJzrNnz3afA9z29pOd7W/Y1hegpdFykXkpY19jqv+LbfNPo1yko8sgGvHo hiWLbBZHO72NjY2eqRVsyN7yiKdextnBd9+xaRrP2S8AwA4/OL3ez4ILhvCOJ/zQYexjEIYsmwWC XXKW8ts0yDIeMU9CSaz47SXNRNhcd5pnecpdlwXzJE4zlqRBlEFvNMmCOOr1VLdYiJ4a4vObyzwI fecKkKvHNAGSIWHwm340jdO5lyEV03kmH0/ilOvHPE3jVHb7Xua5oRdd6WefvpcP5otJkujO+SIM LmU/zqq7s9SLBM7VfAR0uoBA0Z8tkqCc4igQGbHD51P2PsE1C7u/12PQNhGW7zG7z4YvWJxkiZcK 7kioE/yeEtzGBw48jATzIoSCh4wgUxZEoOjRhDsbPYJM2Lgdj92Xzx3P912Jw7aGwygeJinPssWQ xDKcc9AUX1gDgq40n4tsbEloVwpxBbRH0h1bIgNRuFMvFLwd6dTLw2x8lua85fGMh8nY+jiDeWCx WYycluoq6ZDKhNzWpPR7irMHcZSlcchOSPdBI4BTaT4BcoQGAWGyWRT7nPS7lT/JYhhEQTY8XsGR hYsgbrSeDUDASi68QTYtZUNhqmpJrpzXBYsE9U/5P/MgBYPlNzxdsG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yOFBle GxWmwRRt9at5QpkQkbXxA1R1OTekA1JZxBo/CCdxw8g0DuRsjZwrHWYCvArL2tlVXKA3FV5lPR2+ XN//LF+20jx7ozw6JadamGam+leybpNR9YvGJ2tgEKnWW1PVqV8EV45ciSvr7Vs036aESomFnmPq YyCLdHiUz+kGr0QpCzL6FQkFWDmytcRRDUxGVs25Sk+f/bt8U62sX5Aza90z8n8tKllF+FtVFuUr fw0xlDvpKgm8pr/9kEhYdaMqGAgDD8XVqTeDaBLmPmcblZjcmW1Ul6hyPoFM1zgqjWTURRcYUUAi 8SYcxEaMwosgAjdkp9FStlQ9rSZNsYFh+GAxfqWzZox+iy0aEiebLKINUt9+ExCbr22zqupIQ791 gGk1Pgm1yYzfGBuNmMmSFoZ8sfgPwrIsjkN1ZB7eiZmXOmL2WedY8/eftnab+Z/d3Sdd/P81Wu3v P116YtbbxKwL/h0LfBGVfqk/B4JVPEsUhv2gA35S5Re9nuAZG8YsivMIvuqfSZDwqReE+jdPU3yj tddTf8zi32AgfDKL2QaW2+6xb/+yUfRcBRldggUZ9P/j9Kf9D+7bwzP34P27d4dnVAhNcFaVsj36 uyAYYONyhKXAEHwKe6e8ZmZDevd5qpEsxeWDD7V6v/V6G0jZ/7b0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/639B3YU44sAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"