#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c61f31e1df9a657149baff4fe6b9516da7357ff5 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 H4sIAAwOGWcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799XWy52tly/3tr7Z2t5+sb31Ddv6ArQ0WiZSJ2Hsa0z1v7Ft/mWUiWQ08cMR D+9YvEhnUbjT29jY6JW1gg3ZBx7yxEk5O/zuOzZNojn7BQDY0bnV6/0suGAIbznCCyzGPvlBwNKZ L9iEs4TfJ36a8pA5EkpixW9vaCbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH7yaZ H3jWDSBXj2kCJEPC4Df9aBolcydFKqbzVD52o4TrxzxJokR2e07q2IET3uhnn7+XD+YLN45153wR +BPZj7Pq7jRxQoFzNR8BnTYgUPSni9gvpjj2RUrs8PiUnca4ZmH293sM2ibC8n1m9tnwNYviNHYS wS0JdYbfE4LbOOfAw1AwJ0QoeMgIMmF+CIoeutza6BFkzMbteMy+fG45nmdLHKYxHIbRME54mi6G JJbhnIOmeMIYEHSleVykY0NC21KIK6Adku7YECmIwp46geDtSKdOFqTjyyTjLY9nPIjHxqcZzAOL TSPktFRXSYdUJuS2JqXfU5w9jMI0iQJ2RroPGgGcSjIXyBEaBITJZmHkcdLvVv7Ei6Ef+unwZAVH FjaC2OF6NgABK7nwHtm0lA25qaol2XJeGywS1D/h/535CRgsv+P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jZ+gKou54b0QiqVWOMH4SRulNKNAzlbI/FKB0Mf78PSdnblt+hNhVepT4sv1/e/yhfi NM/eK7dOGaoWppXz/StZt8moBEbjk4UwiFTrbVnVqV/4N5ZciS2L7ls036SsSoGFnmP+YyArdXiY zekar0ApqzL6FQn5WD6ytcRRDcqMrJpzlZ4++0fxNmFRxCBn1rpXSgK2qGQV4W9VWRSvbzbEUGyn qyTwjv4ASCxh1bWqYCAMvGCoTr3ph26QeZxtVM4I1myjukSV+PFlzsZSuaRScXSOEQUkYsflIDZi FF4kEXhJdhotpUzV02rmFBsYhgcW41U6a8botdhiSeJkk3nIQerbbwJi87RtVlUdaei3DihbjUdC bTLjN8ZGI1ZmSQtDvkT8B2FZGkWBOrgPH8TMSSwx+1PnWP33v/DPf72s5392d3e6+P9rtNrf/5o4 YtbbxKwL/h0TfE+Yfqk/B4NVPEsUhv2gA37S4te9nuApG0YsjLIQvuqfsR/zqeMH+jdPEnzhuNdT f8zkH2Ab3J1FbAPLbffZt/+2kffc+Cldxfkp9P/nxU8H5/aHo0v78PTjx6NLKoQmOKNK2T79XRiM rXE5wlBgCD6FbVPeULMhvcI+1UiW4vLAfRq933q9DaTsXy29rnWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9DxctyjIAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"