#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f5d29435edb9e129a05655342ed161ca84b8db48 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 H4sIAH3JxGYAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r2oxVRIJoKenp1/TM93g0rkRoyX8sxeOH1rx8ps/v+1Ae/n8OX7uvny+S9e7 L1/SJ3zb2dl/+c3u/osXu7v7+/sv4Pnu7rPd3W/YzhegpdEykToJY19jqP+Pbfsvo0wko6kfjnh4 y+JlOo/Cvd7W1lavrBVsyN7zkCdOytnhd9+xWRIt2C8AwI4+Wr3ez4ILhvCWI7zAYuyTHwQsnfuC TTlL+F3ipykPmSOhJFb89ppGImy2PcvSLOG2zfxFHCUpixM/TOFu6KZ+FPZ66rZYip7q4vHbaeYH nnUNyNVjGgDJkDD4TT+aRcnCSZGK2SKVj90o4foxT5Iokbc9J3XswAmv9bPP38sHi6Ubx/rmYhn4 U3kfR9W308QJBY7VfAR02oBA0Z8uY78Y4tgXKbHD4zN2GuOchdkf9xi0bYTlY2b22fAVi+I0dhLB LQl1ht8Tgtv6yIGHoWBOiFDwkBFkwvwQFD10ubXVI8iYTdrxmH353HI8z5Y4TGM4DKNhnPA0XQ5J LMMFB03xhDEg6ErzuEgnhoS2pRDXQDsk3YkhUhCFPXMCwduRzpwsSCcXScZbHs95EE+MT3MYByab Rshpqa6SDqlMyG1NSr+nOHsYhWkSBeyMdB80AjiVZC6QIzQICJPNw8jjpN+t/ImXQz/00+HJGo4s bQSxw81sAALWcuEdsmklG3JTVVOy5bg2WCSof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PJCjNRLvtGH08TwsbWdXnkVpKrxKfVt8tb7/Vb4Qp3n2Trl1ylC2 MK1c77GWdduMSqA0PlkIhUi13pZVne4L/9qSM7HlSxctmm9SVq3AQs8x/zWQlVo8zBZ0jFeglFU5 /YqEfCwf2lnhqAZlRlbNuUpPn/2jeJuwKGKRI2vdKyWBW1SyivC3qiyK1zcbYiiW03USeEs/ABJL WHWsKhgIAw8eqkNv+6EbZB5nW5W9gzXfqk5RJf58mbOzVC6xVByfY0QBidhxOYiNGIUHTARekp1G Sylz9bSaOccGhuGBxXiVmzVj9FpssSRxssk85CD17TcBsXnaNquqjjT0WzuUrcYjoTaZ8RtjoxEr s6SFIV8i/oOwLI2iQG3oh/di7iSWmP+pY6z//S/8+a8Xpfh/B/M/+/t7Xfz/NVrt97+mjpj3tjHr gr9jgu8J05X6ORis4lqhMOwHHfCTFr/q9QRP2TBiYZSF8FVfxn7MZ44f6GueJPjCca+nfszkH2Ab 3J1HbAvLrcfs2//Yyu9c+ykd0fkp3P/v858OPtrvjy7sw9MPH44uqBCe4IwqZWP6XRiMrXE6wlBg CD6DZVOeXLMhvcI+00hW4vLAfRq933q9LaTsXy29rnWta13rWte61rWuda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17r279j+D+X2WfUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"