#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c8d04f07455798296cc03ecdc1d928b2c89b4a73 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 H4sIAC+Ra2cAA+08a3PbOJLzWb8Ca0+KVEai/Mp4yjtKzuM8xruJ44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaPvPnuHn9v6zbfq9 s7VFn/hof+v7b7b39nd39re3drf3v9na3t7d2vmGbX0BWhotF5mXMvY1pvq/2Db/MspFOroKohGP blmyyGZxtNPb2NjomVrBhuwNj3jqZZwdffcdm6bxnP0KAOz4g9Pr/SK4YAjveMIPHcY+BmHIslkg 2BVnKb9LgyzjEfMklMSK317QTITNdad5lqfcdVkwT+I0Y0kaRBn0RpMsiKNeT3WLheipIT6/vcqD 0HeuAbl6TBMgGRIGv+lH0zidexlSMZ1n8vEkTrl+zNM0TmW372WeG3rRtX726Qf5YL6YJInunC/C 4Er246y6O0u9SOBczUdApwsIFP3ZIgnKKd4GIiN2+HzK3ie4ZmH3D3oM2ibC8gNm99nwOYuTLPFS wR0JdYrfU4Lb+MCBh5FgXoRQ8JARZMqCCBQ9mnBno0eQCRu347H78rnj+b4rcdjWcBjFwyTlWbYY kliGcw6a4gtrQNCV5nORjS0J7UohroD2SLpjS2QgCnfqhYK3I516eZiNz9Octzye8TAZWx9nMA8s NouR01JdJR1SmZDbmpR+T3H2KI6yNA7ZKek+aARwKs0nQI7QICBMNotin5N+t/InWQyDKMiGJys4 snARxI3WswEIWMmF18impWwoTFUtyZXzumCRoP4p/+88SMFg+S1PF2wa8NAvu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2tlVXKA3FV5l PR2+XN//Kl+20jx7rTw6JadamGam+leybpNR9YvGJ2tgEKnWW1PVqV8E145ciSvr7Vs036aESomF nmPqYyCLdHiUz+kGr0QpCzL6FQkFWDmytcRRDUxGVs25Sk+f/at8U62sX5Aza90z8n8tKllF+HtV FuUrfw0xlDvpKgm8or/9kEhYdaMqGAgDD8XVqTeDaBLmPmcblZjcmW1Ul6hyPoFM1zgqjWTURRcY UUAi8SYcxEaMwosgAjdkp9FStlQ9rSZNsYFh+GAxfqWzZox+iy0aEiebLKINUt9+ExCbr22zqupI Q791gGk1Pgm1yYzfGRuNmMmSFoZ8sfgPwrIsjkN1ZB7ei5mXOmL2WedY8/eftvaa+Z+9nb0u/v8a rfb3n648MettYtYF/44FvohKv9SfA8EqniUKw37UAT+p8vNeT/CMDWMWxXkEX/XPJEj41AtC/Zun Kb7R2uupP2bxLzAQPpnFbAPLbQ/Yt/+xUfRcBxldggUZ9P/n2c+HH9w3x+fu0ft3747PqRCa4Kwq ZQf0d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fu/1NpCy/23pda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7H8qgBHoAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"