#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c17d704a24333c29b5a09d480bd7278bdb2edeff 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 H4sIANZmuWYAA+08a3PbRpL5zF8xK8UF0CFBPe2UNrRPkR/RnSypLGV9KZ2CAoGhCAsEcBhAEncr +e3X3TODN0lpE3uvajFVNvHo6enp1/RMN7RwbsVoAf/Zc8cPrXjxzZ/ftqC93N/H3+2X+9t0v/3y Jf3C1dbW3stvtvde7L/YebG7s737zdb29u72zjds6wvQ0miZSJ2Esa8x1P/HtvmXUSaS0cQPRzy8 Y/EinUXhTm9jY6NX1go2ZO95yBMn5ezou+/YNInm7BcAYMcfrV7vZ8EFQ3jLEV5gMfbJDwKWznzB Jpwl/D7x05SHzJFQEitevaaRCJttT7M0S7htM38eR0nK4sQPU3gauqkfhb2eeiwWoqe6ePxukvmB Z90AcvWaBkAyJAxe6VfTKJk7KVIxnafytRslXL/mSRIl8rHnpI4dOOGNfvf5e/livnDjWD+cLwJ/ Ip/jqPpxmjihwLGar4BOGxAo+tNF7BdDnPgiJXZ4fMrOYpyzMPsHPQZtE2H5ATP7bPiKRXEaO4ng loQ6x+uE4DY+cuBhKJgTIhS8ZASZMD8ERQ9dbm30CDJm43Y8Zl++txzPsyUO0xgOw2gYJzxNF0MS y3DOQVM8YQwIutI8LtKxIaFtKcQV0A5Jd2yIFERhT51A8HakUycL0vFlkvGW1zMexGPj0wzGgcmm EXJaqqukQyoTcluT0u8pzh5FYZpEATsn3QeNAE4lmQvkCA0CwmSzMPI46Xcrf+LF0A/9dHi6giML G0HscD0bgICVXHiHbFrKhtxU1ZRsOa4NFgnqn/D/zfwE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5QOkyk bfwAVV3ODemFVCq5xg/CSdwopZsHcrRG4p02jD6eh6Xt7MqzKE2FV6lviy/X97/KD+I0z94pt04Z yhamles9VrJuk1EJlMYnC6EQqdbbsqrTc+HfWHImtvzookXzTcqqFVjoPea/BrJSi4fZnI7xCpSy KqdfkZCP5UNbSxzVoMzIqjlX6emzfxRfExZFLHJkrXulJHCLSlYR/laVRfH5ZkMMxXK6SgJv6Q+A xBJWHasKBsLAg4fq0Jt+6AaZx9lGZe9gzTaqU1SJP1/m7CyVSywVx+cYUUAidlwOYiNG4QETgZdk p9FSyly9rWbOsYFheGAxXuVhzRi9FlssSZxsMg85SH37TUBsnrbNqqojDf3WDmWr8UioTWb8xtho xMosaWHIl4j/ICxLoyhQG/rhg5g5iSVmf+oYq//+F/75rxf1/M8ebBe6+P8rtNrf/5o4YtbbxKwL /h0T/E6Y7tSfg8EqriUKw37QAT9p8ateT/CUDSMWRlkIl/o29mM+dfxA3/MkwQ+Oez31x0z+AbbB 3VnENrDc+oB9+x8b+ZMbP6UjOj+F5/998dPhR/v98aV9dPbhw/ElFcITnFGl7ID+LgzG1jgdYSgw BJ/CsilPrtmQPmGfaiRLcXngPo3eb73eBlL2r5Ze17rWta51rWtd61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta137d2z/B5I+0/4AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"