#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3689a980591d05c6663ec67677763348cc51883c 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 H4sIAOw5a2cAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3Z3nu7uPd3e/WZre3sXutjWF6Cl0XKReSljX2Oq/4tt80+jXKSjyyAa8eiG JYtsFkc7vY2NjZ6pFWzI3vCIp17G2eF337FpGs/ZLwDAjj44vd7PgguG8I4n/NBh7GMQhiybBYJd cpby2zTIMh4xT0JJrPjtBc1E2Fx3mmd5yl2XBfMkTjOWpEGUQW80yYI46vVUt1iInhri85vLPAh9 5wqQq8c0AZIhYfCbfjSN07mXIRXTeSYfT+KU68c8TeNUdvte5rmhF13pZ5++lw/mi0mS6M75Igwu ZT/Oqruz1IsEztV8BHS6gEDRny2SoJzibSAyYofPp+x9gmsWdn+/x6BtIizfZ3afDZ+zOMkSLxXc kVAn+D0luI0PHHgYCeZFCAUPGUGmLIhA0aMJdzZ6BJmwcTseuy+fO57vuxKHbQ2HUTxMUp5liyGJ ZTjnoCm+sAYEXWk+F9nYktCuFOIKaI+kO7ZEBqJwp14oeDvSqZeH2fgszXnL4xkPk7H1cQbzwGKz GDkt1VXSIZUJua1J6fcUZw/jKEvjkJ2Q7oNGAKfSfALkCA0CwmSzKPY56Xcrf5LFMIiCbHi8giML F0HcaD0bgICVXHiNbFrKhsJU1ZJcOa8LFgnqn/J/5k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N6YBUFrHGD8JJ3DAyjQM5WyPnSoeZAK/CsnZ2FRfoTYVXWU+H L9f3P8uXrTTPXiuPTsmpFqaZqf6VrNtkVP2i8ckaGESq9dZUdeoXwZUjV+LKevsWzbcpoVJioeeY +hjIIh0e5XO6wStRyoKMfkVCAVaObC1xVAOTkVVzrtLTZ/8u31Qr6xfkzFr3jPxfi0pWEf5WlUX5 yl9DDOVOukoCr+hvPyQSVt2oCgbCwENxderNIJqEuc/ZRiUmd2Yb1SWqnE8g0zWOSiMZddEFRhSQ SLwJB7ERo/AiiMAN2Wm0lC1VT6tJU2xgGD5YjF/prBmj32KLhsTJJotog9S33wTE5mvbrKo60tBv HWBajU9CbTLjN8ZGI2aypIUhXyz+g7Asi+NQHZmHd2LmpY6YfdY51vz9p629Zv5nb3eri/+/Rqv9 /adLT8x6m5h1wb9jgS+i0i/150CwimeJwrAfdMBPqvy81xM8Y8OYRXEewVf9MwkSPvWCUP/maYpv tPZ66o9Z/BsMhE9mMdvActt99u1fNoqeqyCjS7Agg/5/nP508MF9c3TmHr5/9+7ojAqhCc6qUrZP fxcEA2xcjrAUGIJPYe+U18xsSO8+TzWSpbh88KFW77debwMp+9+WXte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/r+1/wCZ6pNfAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"