#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=64762f863b344cdbb380b15613537e89e04d032f 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 H4sIALScxmYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r2oxVTbJQU9PT7+mZ7qhhXMrRgv4z547fmjFi2/+/LYF7dXeHn5uv9rbpt/b r17RJ3zb2tp99c327suX23vb+O+bre3tF9tb37CtL0BLo2UidRLGvsZU/x/b5l9GmUhGEz8c8fCO xYt0FoU7vY2NjV5ZK9iQfeAhT5yUs8PvvmPTJJqzXwCAHZ1bvd7PgguG8JYjvMBi7JMfBCyd+YJN OEv4feKnKQ+ZI6EkVvz2hmYibLY9zdIs4bbN/HkcJSmLEz9MoTd0Uz8Kez3VLRaip4Z4/G6S+YFn 3QBy9ZgmQDIkDH7Tj6ZRMndSpGI6T+VjN0q4fsyTJEpkt+ekjh044Y1+9vl7+WC+cONYd84XgT+R /Tir7k4TJxQ4V/MR0GkDAkV/uoj9YopjX6TEDo9P2WmMaxZmf7/HoG0iLN9nZp8NX7MoTmMnEdyS UGf4PSG4jXMOPAwFc0KEgoeMIBPmh6DoocutjR5Bxmzcjsfsy+eW43m2xGEaw2EYDeOEp+liSGIZ zjloiieMAUFXmsdFOjYktC2FuALaIemODZGCKOypEwjejnTqZEE6vkwy3vJ4xoN4bHyawTyw2DRC Tkt1lXRIZUJua1L6PcXZwyhMkyhgZ6T7oBHAqSRzgRyhQUCYbBZGHif9buVPvBj6oZ8OT1ZwZGEj iB2uZwMQsJIL75FNS9mQm6paki3ntcEiQf0T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dJtI2 foCqLueG9EIqlVzjB+EkbpTSzQM5WyPxTgdGH+/D0nZ25VmUpsKr1LfFl+v7X+ULcZpn75Vbpwxl C9PK9R4rWbfJqARK45OFUIhU621Z1alf+DeWXIktX7po0XyTsmoFFnqO+a+BrNTiYTana7wCpazK 6Vck5GP50NYSRzUoM7JqzlV6+uwfxduERRGLnFnrXikJ3KKSVYS/VWVRvL7ZEEOxna6SwDv6AyCx hFXXqoKBMPDioTr1ph+6QeZxtlE5O1izjeoSVeLPlzk7S+USS8XxOUYUkIgdl4PYiFF4wUTgJdlp tJQyV0+rmXNsYBgeWIxX6awZo9diiyWJk03mIQepb78JiM3TtllVdaSh3zqgbDUeCbXJjN8YG41Y mSUtDPkS8R+EZWkUBepAP3wQMyexxOxPnWP13//CP//1sp7/2d3d6eL/r9Fqf/9r4ohZbxOzLvh3 TPA9Yfql/hwMVnEtURj2gw74SYtf93qCp2wYsTDKQviqf8Z+zKeOH+jfPEnwheNeT/0xk3+AbXB3 FrENLLfeZ9/+x0bec+OndEXnp9D/3xc/HZzbH44u7cPTjx+PLqkQnuCMKmX79HdhMLbG5QhDgSH4 FLZNeXPNhvQK+1QjWYrLA/dp9H7r9TaQsn+19LrWta51rWtd61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13r2r9j+z8Z0eatAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"