#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=88232a610fb6df3031d592bf8a0924bcf448e30d 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 H4sIAAzT4mcAA+07a3PbRpL5zF8xK8UF0CFBSZajFDe0T5Ef0a4tqyxlcymdgoKAoQgLBHAYUBJ3 K/nt190zA2AAkJQuse+qFlNliwR6evo93T3DpXcjRq4bxmHuuk66/OozjB0Y3+7v49/dg+e79H1v Z4f+qvHV7v7Bwc7z57t7z/e+2tnd3dnf+4rtfA5i6mMhci9j7Ess9f9xLFH/1zx2/TT9TOrfpP/9 b/cPavrfOdh/1un/S4ytra1eqX42ZPkiixlaheOJIGIZTzMueJx7eZjELIzzhB19800P502zZM5c d7qAOdx1WThPkyxnaQZQ8DT2cUpPgQX89moRRoEDqzmI3yX8ao59miXXmTcfsHkSAOy0+ODyAbvJ lykf9NhDBsEWk9x8wE68OT9HBEzk81z+7z4UHQHDpOMY/rvh92lGuOlD3pe8zZcgPc3JfBmFV5Xn Dj3Qb3PvWtyFuT8bsCi5VrIBQsP4WoP4nsh7PZdNJEQPZMDe8hg5sAFywKb9MdG+jRP5mNkFp7SU 83MW5jzrs+ELdpLEvEfAP526AAVI4X96AFTMSnIQc595Alfn40I04ZQeqBW4A1Lojw3BTZ07XM62 QOdWv1e841F97lmerZr7Q3gNb5+un/8uFPXFJUcoMAlFMAPFa799LQT53jJfVsTrnKOA26e+qFFY lRSOzAsFZ4dC8Awt/3WWJRkJttTiqQdGbrcpsbTSNVrUhKaOsoSeQSB7IuAfS50YkFVWfQ3WaqPJ thmPNOVNxoNQIGv802Y++Hyd/UjHabEfhZd0SD6m1lqhgicBMogATth/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Sd5BUAEJOKxnn7a9gMsKINXOopNmGK6aPiR0dNII1kRL2+elO5CiCWkGjf KzStshiwkqM2uZiRtrFSLcSX77U/bG9DIQc5hj4HqPSCVHSJ+Z1qUagHGWXRCG2uh1sRlM4Tq2mf paXLsgP/fQ2h9AX7GmKGiSbgwoegK/uuchMwofvthGXenev7ZjjWfjGa8ShKXAChUx30bZUV0/sN 88o5RsAtiL6QS1ciY106F9YqtNXNsYy8m0Wo560QhqbxouSwFrgtjKlD2n+a9JvUPCT0q+huEWcW RX0dfnUYt7a2rHXxW5tekukILsNW/3KVxltjecnx5wtqq1IcvB/559Q93ZAj4Ld5kkTKZYb3YuZl kCP/qWtsOP/f2W/Wf/t7B1399yVG7fz/yhOz3jZWXXiOgY0I+qaOg7bJQVsNhn2vq0H6rcOLXk/w nA0TFieLGD7qr2mY8qkXRvo7zzLsaPR66jDjX+Dn3J8lbAtPzcbs6//YKp5chzltgmEOz//z7MfD j+7b43MXYs3743M61iY4y6RsTOdCePKL7AhLgSH4NIwDmWayIfW+phrJSlxBEnOr91uvt4WU/V9r rxvd6EY3utGNbnSjG93oRje60Y1udKMb3ehGN7rRjW50oxvd6EY3utGNbnSjG93oRje60Y1udKMb /27jfwCcCwWfAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"