#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f2c84dade0c058aac579df18ceaa10614ed1dd4f 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 H4sIAAQ2dGcAA+08a3PbOJLzWb8Ca0+KVEai5EcmU95Rch7nMd5NHFfs2dyUz8OiRchiTJE8grSt 3Zr57dfdAEjwIcnZSXJXdURVIglsNBr9QgPd9NK7EaMl/OcuvCBykuU3n7+NoT198gQ/d54+2aHf u+MxfeKjp+Pvv9nZf7r3ZLy3+/3+7jfjnZ298d43bPwFaGm0XGReytjXmOr/Ytv+yygX6egqiEY8 umXJMpvH0W5va2urZ2oFG7LXPOKpl3F29N13bJbGC/YrALDj906v94vggiG84wk/dBj7EIQhy+aB YFecpfwuDbKMR8yTUBIrfntOMxE2153lWZ5y12XBIonTjCVpEGXQG02zII56PdUtlqKnhvj89ioP Qt+5BuTqMU2AZEgY/KYfzeJ04WVIxWyRycfTOOX6MU/TOJXdvpd5buhF1/rZxx/kg8VymiS6c7EM gyvZj7Pq7iz1IoFzNR8BnS4gUPRnyyQop3gTiIzY4fMZe5fgmoXdP+gxaNsIyw+Y3WfDZyxOssRL BXck1Cl+Twlu6z0HHkaCeRFCwUNGkCkLIlD0aMqdrR5BJmzSjsfuy+eO5/uuxGFbw2EUD5OUZ9ly SGIZLjhoii+sAUFXms9FNrEktCuFuAbaI+lOLJGBKNyZFwrejnTm5WE2OU9z3vJ4zsNkYn2Ywzyw 2CxGTkt1lXRIZUJua1L6PcXZozjK0jhkp6T7oBHAqTSfAjlCg4Aw2TyKfU763cqfZDkMoiAbnqzh yNJFEDfazAYgYC0XXiGbVrKhMFW1JFfO64JFgvqn/L/z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4xM40DO1si50mEmwKuwrJ1dxQV6U+FV 1tPhq/X9r/JlK82zV8qjU3KqhWlmqn8t67YZVb9ofLIGBpFqvTVVnfpFcO3Ilbiy3r5F821KqJRY 6DmmPgaySIdH+YJu8EqUsiCjX5FQgJUj4xWOamAysmrOVXr67F/lm2pl/YKcWeuekf9rUckqwt+r sihf+WuIodxJ10ngJf3th0TCqhtVwUAYeCiuTr0dRNMw9znbqsTkznyrukSV8wlkusZRaSSjLrrA iAISiTflIDZiFF4EEbghO42WsqXqaTVpig0MwweL8SudNWP0W2zRkDjZZBFtkPr2m4DYfG2bVVVH GvqtA0yr8UmoTWb8zthoxEyWtDDki8V/EJZlcRyqI/PwXsy91BHzzzrHhr//NN5v5n/2d5908f/X aLW//3TliXlvG7Mu+Hcs8EVU+qX+HAhW8axQGPajDvhJlZ/1eoJnbBizKM4j+Kp/JkHCZ14Q6t88 TfGN1l5P/TGLf4GB8Ok8ZltYbnvAvv2PraLnOsjoEizIoP8/z34+fO++Pj53j969fXt8ToXQBGdV KTugvwuCATYuR1gKDMFnsHfKa2Y2pHefZxrJSlw++FCr93uvt4WU/W9Lr2td61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/9/a/wBFEK22AHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"