#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=94edac52daf73eb11243cb441c5bcc0aeb7e29ee 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 H4sIAODJL2cAA+08/XPbtpL9WX8Fnt0MqVSibMeJO35Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtvfyJX5u773cpt/b e3v0Cd+2tnb3vtne3dt+sbe7+3IP4La3X+y8+IZtfQFaGi0TqZMw9jWm+t/YNv8yykQymvjhiId3 LF6ksyjc6W1sbPTKWsGG7AMPeeKknB1+9x2bJtGc/QIA7Ojc6vV+FlwwhLcc4QUWY5/8IGDpzBds wlnC7xM/TXnIHAklseK3NzQTYbPtaZZmCbdt5s/jKElZnPhhCr2hm/pR2OupbrEQPTXE43eTzA88 6waQq8c0AZIhYfCbfjSNkrmTIhXTeSofu1HC9WOeJFEiuz0ndezACW/0s8/fywfzhRvHunO+CPyJ 7MdZdXeaOKHAuZqPgE4bECj600XsF1Mc+yIldnh8yk5jXLMw+/s9Bm0TYfk+M/ts+JpFcRo7ieCW hDrD7wnBbZxz4GEomBMiFDxkBJkwPwRFD11ubfQIMmbjdjxmXz63HM+zJQ7TGA7DaBgnPE0XQxLL cM5BUzxhDAi60jwu0rEhoW0pxBXQDkl3bIgURGFPnUDwdqRTJwvS8WWS8ZbHMx7EY+PTDOaBxaYR clqqq6RDKhNyW5PS7ynOHkZhmkQBOyPdB40ATiWZC+QIDQLCZLMw8jjpdyt/4sXQD/10eLKCIwsb QexwPRuAgJVceI9sWsqG3FTVkmw5rw0WCeqf8P/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0iEjb+AGqupwb0gupVGKNH4STuFFKNw7kbI3EKx0MfbwPS9vZld+iNxVepT4tvlzf/ypf iNM8e6/cOmWoWphWzvevZN0moxIYjU8WwiBSrbdlVad+4d9YciW2LLpv0XyTsioFFnqO+Y+BrNTh YTana7wCpazK6Fck5GP5yNYSRzUoM7JqzlV6+uwfxduERRGDnFnrXikJ2KKSVYS/VWVRvL7ZEEOx na6SwDv6AyCxhFXXqoKBMPCCoTr1ph+6QeZxtlE5I1izjeoSVeLHlzkbS+WSSsXROUYUkIgdl4PY iFF4kUTgJdlptJQyVU+rmVNsYBgeWIxX6awZo9diiyWJk03mIQepb78JiM3TtllVdaSh3zqgbDUe CbXJjN8YG41YmSUtDPkS8R+EZWkUBergPnwQMyexxOxPnWP13//CP//1qp7/2QXwLv7/Cq32978m jpj1NjHrgn/HBN8Tpl/qz8FgFc8ShWE/6ICftPh1ryd4yoYRC6MshK/6Z+zHfOr4gf7NkwRfOO71 1B8z+QfYBndnEdvActt99u2/beQ9N35KV3F+Cv3/efHTwbn94ejSPjz9+PHokgqhCc6oUrZPfxcG Y2tcjjAUGIJPYduUN9RsSK+wTzWSpbg8cJ9G77debwMp+1dLr2td61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWu/X9s/wPO+2WTAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"