#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b069fe6eaa252216f85fbf58e332967b00e71aea 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 H4sIADBPeWcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJsx34b/v5N1vb20+2n3zDtr4ALY2Wi8xLGfsaU/1fbJt/GuUiHV0F0YhH tyxZZLM42ultbGz0TK1gQ/aWRzz1Ms4OvvuOTdN4zn4BAHZ46vR6PwsuGMI7nvBDh7EPQRiybBYI dsVZyu/SIMt4xDwJJbHit5c0E2Fz3Wme5Sl3XRbMkzjNWJIGUQa90SQL4qjXU91iIXpqiM9vr/Ig 9J1rQK4e0wRIhoTBb/rRNE7nXoZUTOeZfDyJU64f8zSNU9nte5nnhl50rZ99/F4+mC8mSaI754sw uJL9OKvuzlIvEjhX8xHQ6QICRX+2SIJyiqNAZMQOn0/Z+wTXLOz+Xo9B20RYvsfsPhu+YHGSJV4q uCOhTvB7SnAbpxx4GAnmRQgFDxlBpiyIQNGjCXc2egSZsHE7Hrsvnzue77sSh20Nh1E8TFKeZYsh iWU456ApvrAGBF1pPhfZ2JLQrhTiCmiPpDu2RAaicKdeKHg70qmXh9n4PM15y+MZD5Ox9WEG88Bi sxg5LdVV0iGVCbmtSen3FGcP4ihL45CdkO6DRgCn0nwC5AgNAsJksyj2Oel3K3+SxTCIgmx4vIIj CxdB3Gg9G4CAlVx4g2xayobCVNWSXDmvCxY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oM r40K02CKtvrVPKFMiMja+AGqupwb0gGpLGKNH4STuGFkGgdytkbOlQ4zAV6FZe3sKi7Qmwqvsp4O X67vf5YvW2mevVEenZJTLUwzU/0rWbfJqPpF45M1MIhU662p6tQvgmtHrsSV9fYtmm9TQqXEQs8x 9TGQRTo8yud0g1eilAUZ/YqEAqwc2VriqAYmI6vmXKWnz/5dvqlW1i/ImbXuGfm/FpWsIvytKovy lb+GGMqddJUEXtPffkgkrLpRFQyEgYfi6tSbQTQJc5+zjUpM7sw2qktUOZ9ApmsclUYy6qILjCgg kXgTDmIjRuFFEIEbstNoKVuqnlaTptjAMHywGL/SWTNGv8UWDYmTTRbRBqlvvwmIzde2WVV1pKHf OsC0Gp+E2mTGb4yNRsxkSQtDvlj8B2FZFsehOjIP78XMSx0x+6xzrPn7T1u7zfzP7pOnXfz/NVrt 7z9deWLW28SsC/4dC3wRlX6pPweCVTxLFIb9oAN+UuUXvZ7gGRvGLIrzCL7qn0mQ8KkXhPo3T1N8 o7XXU3/M4t9gIHwyi9kGltvusW//slH0XAcZXYIFGfT/4+yn/VP37eG5e/D+3bvDcyqEJjirStke /V0QDLBxOcJSYAg+hb1TXjOzIb37PNVIluLywYdavd96vQ2k7H9bel3rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd+//W/gODpqHoAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"