#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f8a4d7ab7eb17a25cc7a5ba7eed8b3877acab36f 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 H4sIAP8jPWcAA+08a3PbRpL5zF8xK8UF0CFBUZatlDa0T5Ef0Z0sqSRlfSmdgoKAoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37ag7b58ib/j3Zdjuh/v 7tIvXG1t7ex+M97ZHe9ub49fvdj+Zms8frG1+w3b+gK0NFomUidh7GsM9b+xbf5llIlkdO2HIx7e sXiRzqJwu7exsdErawUbsg885ImTcnbw3XdsmkRz9gsAsMMzq9f7WXDBEN5yhBdYjH3yg4ClM1+w a84Sfp/4acpD5kgoiRWv3tBIhM22p1maJdy2mT+PoyRlceKHKTwN3dSPwl5PPRYL0VNdPH53nfmB Z90AcvWaBkAyJAxe6VfTKJk7KVIxnafytRslXL/mSRIl8rHnpI4dOOGNfvf5e/livnDjWD+cLwL/ Wj7HUfXjNHFCgWM1XwGdNiBQ9KeL2C+GOPJFSuzw+JSdxDhnYfb3egzaJsLyPWb22fA1i+I0dhLB LQl1itcJwW2cceBhKJgTIhS8ZASZMD8ERQ9dbm30CDJmk3Y8Zl++txzPsyUO0xgOw2gYJzxNF0MS y3DOQVM8YQwIutI8LtKJIaFtKcQV0A5Jd2KIFERhT51A8HakUycL0slFkvGW1zMexBPj0wzGgcmm EXJaqqukQyoTcluT0u8pzh5EYZpEATsl3QeNAE4lmQvkCA0CwmSzMPI46Xcrf+LF0A/9dHi8giML G0HscD0bgICVXHiPbFrKhtxU1ZRsOa4NFgnqn/D/zv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kEol1vhBOIkbpXTjQI7WSLzSDtDH87C0nV35KXpT4VXq 0+LL9f2v8oM4zbP3yq1ThqqFaeV8/0rWbTIqgdH4ZCEMItV6W1Z1ei78G0vOxJZF9y2ab1JWpcBC 7zH/MZCVOjzM5nSMV6CUVRn9ioR8LB/ZWuKoBmVGVs25Sk+f/aP4mrAoYpAja90rJQFbVLKK8Leq LIrPNxtiKJbTVRJ4R38AJJaw6lhVMBAGniRUh970QzfIPM42KpsBa7ZRnaJK/PgyZ2OpXFKpODrH iAISseNyEBsxCk+MCLwkO42WUqbqbTVzig0MwwOL8SoPa8botdhiSeJkk3nIQerbbwJi87RtVlUd aei3dihbjUdCbTLjN8ZGI1ZmSQtDvkT8B2FZGkWB2qEPH8TMSSwx+1PHWP33v/DPf72q5392dsZd /P81Wu3vf107YtbbxKwL/h0T/E6Y7tSfg8EqniUKw37QAT9p8eteT/CUDSMWRlkIl/o29mM+dfxA 3/MkwQ+Oez31x0z+AbbB3VnENrDcdo99+28b+ZMbP6UzNz+F5/95/tP+mf3h8MI+OPn48fCCCqEJ zqhStkd/FwZja5yOMBQYgk9h2ZRH0WxIn7BPNZKluDxwn0bvt15vAyn7V0uva13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79f2z/Ay70IAwAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"