#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f5861cb6804bdaca8a83f12a684a31629ff28480 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 H4sIAKD0m2YAA+08a3PbRpL5zF8xK8UF0CFBSZatlDa0T5Ef0Z0tqSRlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21B23v+HH+3955v0/32 3h79wtXW1u7eN9u7L3Zf7O3twO83W9vbz3aefcO2vgAtjZYJ6aWMfY2h/j+2zb+MMpGOroNoxKM7 lizkLI52ehsbG72yVrAhe8cjnnqSs8PvvmPTNJ6zXwCAHZ05vd7PgguG8I4n/NBh7GMQhkzOAsGu OUv5fRpIySPmKSiFFa9e0UiEzXWnmcxS7rosmCdxKlmSBpGEp9FEBnHU6+nHYiF6uovP766zIPSd G0CuX9MASIaCwSvzahqnc08iFdO5VK8nccrNa56mcaoe+5703NCLbsy7T9+rF/PFJEnMw/kiDK7V cxzVPJapFwkcq/kK6HQBgaZfLpKgGOJ9ICSxw+dTdpLgnIXd3+8xaJsIy/eZ3WfDlyxOZOKlgjsK 6hSvU4LbOOPAw0gwL0IoeMkIMmVBBIoeTbiz0SPIhI3b8dh99d7xfN9VOGxrOIziYZJyKRdDEstw zkFTfGENCLrSfC7k2FLQrhLiCmiPpDu2hARRuFMvFLwd6dTLQjm+SDPe8nrGw2RsfZzBODBZGSOn lboqOpQyIbcNKf2e5uxhHMk0Dtkp6T5oBHAqzSZAjjAgIEw2i2Kfk3638idZDIMokMPjFRxZuAji RuvZAASs5MJbZNNSNuSmqqfkqnFdsEhQ/5T/bxakYL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bP0BVl3NDeSGdSqzxg3ASN0rpxoEarZF4pQ1jgOdhsp1d+Sl6U+F16tPhy/X9r+qD OMOzt9qtU4aqhWnlfP9K1m0yKoEx+FQhDCI1eltWdXoughtHzcRVRfctmm9TVqXAQu8x/zFQlTo8 yuZ0jFegVFUZ/YqEAiwf2VriqAZlRlbNuUpPn/2j+JqwKGJQIxvdKyUBW1SyivC3qiyKzzcbYiiW 01USeEN/ACRRsPpYVTAQBh48VIfeDKJJmPmcbVT2Ds5sozpFnfgJVM7G0bmkUnF0jhEFJBJvwkFs xCg8YCLwkuwMWkqZ6rfVzCk2MAwfLMavPKwZo99iiyWJk03mIQepb78JiM03tllVdaSh39qhbDU+ CbXJjN8YG41YmSUtDPkS8R+EZTKOQ72hHz6ImZc6YvanjrH673/hn/96Uc//7AJ4F/9/hVb7+1/X npj1NjHrgn/HBL8Tpjv952CwimeJwrAfTMBPWvyy1xNcsmHMojiL4NLcJkHCp14QmnuepvjBca+n /5jJP8A2+GQWsw0st91n3/7HRv7kJpB0RBdIeP7f5z8dnLnvji7cw5MPH44uqBCa4KwqZfv0d2Ew tsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P2XH02oAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"