#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=99869635b98c5ab22326c7cd63e245d1ff13b38c 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 H4sIAFdFPmcAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdrbw9/tV3vbdL/9 6hX9wtXW1u6rb7Z3X22/2t3defES3m9vv9h+8Q3b+gK0NFomUidh7GsM9b+xbf5llIlkNPHDEQ/v WLxIZ1G409vY2OiVtYIN2Qce8sRJOTv87js2TaI5+wUA2NG51ev9LLhgCG85wgssxj75QcDSmS/Y hLOE3yd+mvKQORJKYsWrNzQSYbPtaZZmCbdt5s/jKElZnPhhCk9DN/WjsNdTj8VC9FQXj99NMj/w rBtArl7TAEiGhMEr/WoaJXMnRSqm81S+dqOE69c8SaJEPvac1LEDJ7zR7z5/L1/MF24c64fzReBP 5HMcVT9OEycUOFbzFdBpAwJFf7qI/WKIY1+kxA6PT9lpjHMWZn+/x6BtIizfZ2afDV+zKE5jJxHc klBneJ0Q3MY5Bx6GgjkhQsFLRpAJ80NQ9NDl1kaPIGM2bsdj9uV7y/E8W+IwjeEwjIZxwtN0MSSx DOccNMUTxoCgK83jIh0bEtqWQlwB7ZB0x4ZIQRT21AkEb0c6dbIgHV8mGW95PeNBPDY+zWAcmGwa Iaeluko6pDIhtzUp/Z7i7GEUpkkUsDPSfdAI4FSSuUCO0CAgTDYLI4+TfrfyJ14M/dBPhycrOLKw EcQO17MBCFjJhffIpqVsyE1VTcmW49pgkaD+Cf/v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QdbL8/lNFUeJInuY1 UWEaTNGmv5onlA4RaRs/QFWXc0N6IZVKrPGDcBI3SunGgRytkXilHaCP52FpO7vyU/SmwqvUp8WX 6/tf5QdxmmfvlVunDFUL08r5/pWs22RUAqPxyUIYRKr1tqzq9Fz4N5aciS2L7ls036SsSoGF3mP+ YyArdXiYzekYr0ApqzL6FQn5WD6ytcRRDcqMrJpzlZ4++0fxNWFRxCBH1rpXSgK2qGQV4W9VWRSf bzbEUCynqyTwjv4ASCxh1bGqYCAMPEmoDr3ph26QeZxtVDYD1myjOkWV+PFlzsZSuaRScXSOEQUk YsflIDZiFJ4YEXhJdhotpUzV22rmFBsYhgcW41Ue1ozRa7HFksTJJvOQg9S33wTE5mnbrKo60tBv 7VC2Go+E2mTGb4yNRqzMkhaGfIn4D8KyNIoCtUMfPoiZk1hi9qeOsfrvf+Gf/3pZz//s7u518f/X aLW//zVxxKy3iVkX/Dsm+J0w3ak/B4NVPEsUhv2gA37S4te9nuApG0YsjLIQLvVt7Md86viBvudJ gh8c93rqj5n8A2yDu7OIbWC57T779t828ic3fkpnbn4Kz//z4qeDc/vD0aV9ePrx49ElFUITnFGl bJ/+LgzG1jgdYSgwBJ/CsimPotmQPmGfaiRLcXngPo3eb73eBlL2r5Ze17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta137/9j+BxrQ0KgAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"