#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=381f2484a24dc2d0bc7045e917932d9e14758ec9 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 H4sIAEcsjmYAA+08a3PbOJLzWb8Ca0+KVEaibMdOpryj5DzOY3yX2K7Ys7kpn4dFi5DFmCJ5BGhb uzXz26+7AfAtyd6ZZK9qiapEEthoNPqFBrrphXcjRgv4z517QeQki2/+/LYF7cXeHn5uv9jbpt/b L17QJ3zb2tp98c327vPdZ7s7z7e2n3+ztb39bHvrG7b1BWhptExIL2Xsa0z1/7Ft/mWUiXR0FUQj Ht2yZCFncbTT29jY6JW1gg3ZOx7x1JOcHX73HZum8Zz9AgDs6KPT6/0suGAI73jCDx3GPgVhyOQs EOyKs5TfpYGUPGKeglJY8dsrmomwue40k1nKXZcF8yROJUvSIJLQG01kEEe9nu4WC9HTQ3x+e5UF oe9cA3L9mCZAMhQMfjOPpnE69yRSMZ1L9XgSp9w85mkap6rb96Tnhl50bZ59/l49mC8mSWI654sw uFL9OKvplqkXCZyr+QjodAGBpl8ukqCY4n0gJLHD51N2kuCahd3f7zFomwjL95ndZ8OXLE5k4qWC OwrqFL+nBLfxkQMPI8G8CKHgISPIlAURKHo04c5GjyATNm7HY/fVc8fzfVfhsK3hMIqHScqlXAxJ LMM5B03xhTUg6ErzuZBjS0G7SogroD2S7tgSEkThTr1Q8HakUy8L5fg8zXjL4xkPk7H1aQbzwGJl jJxW6qroUMqE3Dak9Huas4dxJNM4ZKek+6ARwKk0mwA5woCAMNksin1O+t3Kn2QxDKJADo9XcGTh IogbrWcDELCSC2+RTUvZkJuqXpKr5nXBIkH9U/6/WZCCwfJbni7YN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KrLuaG8kE4l1vhBOIkbpXTjQM3WSLzSgTHA+zDZzq78Fr2p8Dr16fDl+v5X 9UKc4dlb7dYpQ9XCtHK+fyXrNhmVwBh8qhAGkRq9Las69Yvg2lErcVXRfYvm25RVKbDQc8x/DFSl Do+yOV3jFShVVUa/IqEAy0e2ljiqQZmRVXOu0tNn/yjeJiyKGNTMRvdKScAWlawi/K0qi+L1zYYY iu10lQTe0B8ASRSsvlYVDISBFw/VqTeDaBJmPmcblbODM9uoLlEnfgKVs3F0LqlUHJ1jRAGJxJtw EBsxCi+YCLwkO4OWUqb6aTVzig0MwweL8SudNWP0W2yxJHGyyTzkIPXtNwGx+cY2q6qONPRbB5St xiehNpnxG2OjESuzpIUhXyL+g7BMxnGoD/TDezHzUkfM/tQ5Vv/9L/zzX8/r+Z/d3Z0u/v8arfb3 v648MettYtYF/44JvidMv/Sfg8EqniUKw34wAT9p8cteT3DJhjGL4iyCr+ZnEiR86gWh+c3TFF84 7vX0HzP5B9gGn8xitoHltvvs2//YyHuuA0lXdIGE/v8+++ngo/vu6Nw9PPnw4eicCqEJzqpStk9/ FwZja1yOsDQYgk9h21Q312xIr7BPDZKluHxwn1bvt15vAyn7V0uva13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79O7b/AyFePbUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"