#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=836b51f16350349e6efeb3226822bab7e84e0270 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 H4sIAGjwm2YAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798Xui5cvt7YQbnv72c7WN2zrC9DSaJmQXsrY1xjq/2Pb/MsoE+noKohGPLpl yULO4mint7Gx0StrBRuy9zziqSc5O/juOzZN4zn7BQDY4Uen1/tZcMEQ3vGEHzqMfQrCkMlZINgV Zym/SwMpecQ8BaWw4tVrGomwue40k1nKXZcF8yROJUvSIJLwNJrIII56Pf1YLERPd/H57VUWhL5z Dcj1axoAyVAweGVeTeN07kmkYjqX6vUkTrl5zdM0TtVj35OeG3rRtXn3+Xv1Yr6YJIl5OF+EwZV6 jqOaxzL1IoFjNV8BnS4g0PTLRRIUQxwFQhI7fD5lJwnOWdj9vR6DtomwfI/ZfTZ8xeJEJl4quKOg TvE6JbiNjxx4GAnmRQgFLxlBpiyIQNGjCXc2egSZsHE7Hruv3jue77sKh20Nh1E8TFIu5WJIYhnO OWiKL6wBQVeaz4UcWwraVUJcAe2RdMeWkCAKd+qFgrcjnXpZKMfnacZbXs94mIytTzMYByYrY+S0 UldFh1Im5LYhpd/TnD2II5nGITsl3QeNAE6l2QTIEQYEhMlmUexz0u9W/iSLYRAFcni8giMLF0Hc aD0bgICVXHiHbFrKhtxU9ZRcNa4LFgnqn/L/zYIUD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5RuHKjRGolX2jAGeB4m29mVn6I3FV6nPh2+XN//qj6I Mzx7p906ZahamFbO969k3SajEhiDTxXCIFKjt2VVp+ciuHbUTFxVdN+i+TZlVQos9B7zHwNVqcOj bE7HeAVKVZXRr0gowPKRrSWOalBmZNWcq/T02T+KrwmLIgY1stG9UhKwRSWrCH+ryqL4fLMhhmI5 XSWBt/QHQBIFq49VBQNh4MFDdejNIJqEmc/ZRmXv4Mw2qlPUiZ9A5WwcnUsqFUfnGFFAIvEmHMRG jMIDJgIvyc6gpZSpflvNnGIDw/DBYvzKw5ox+i22WJI42WQecpD69puA2Hxjm1VVRxr6rR3KVuOT UJvM+I2x0YiVWdLCkC8R/0FYJuM41Bv64b2YeakjZn/qGKv//hf++a8X9fzP7vOdLv7/Gq3297+u PDHrbWLWBf+OCX4nTHf6z8FgFc8ShWE/mICftPhVrye4ZMOYRXEWwaW5TYKET70gNPc8TfGD415P /zGTf4Bt8MksZhtYbrvHvv2PjfzJdSDpiC6Q8Py/z37a/+i+Pzx3D04+fDg8p0JogrOqlO3R34XB 2BqnIywNhuBTWDbVyTUb0ifsU4NkKS4f3KfV+63X20DK/tXS61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/47t/wCQIJWBAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"