#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a0b296d324604744f00f4411abd492bbe9eb3e7e 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 H4sIAHNIe2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSfY1yXszj5hJJIGLxWK/sMAuvfCuxWgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJs2e7u1vbz77Z2t5+sr31Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/mmUi3R0GUQj Ht2wZJHN4mint7Gx0TO1gg3ZWx7x1Ms4O/juOzZN4zn7BQDY4Qen1/tZcMEQ3vGEHzqMfQzCkGWz QLBLzlJ+mwZZxiPmSSiJFb+9pJkIm+tO8yxPueuyYJ7EacaSNIgy6I0mWRBHvZ7qFgvRU0N8fnOZ B6HvXAFy9ZgmQDIkDH7Tj6ZxOvcypGI6z+TjSZxy/ZinaZzKbt/LPDf0oiv97NP38sF8MUkS3Tlf hMGl7MdZdXeWepHAuZqPgE4XECj6s0USlFMcBSIjdvh8yt4nuGZh9/d6DNomwvI9ZvfZ8AWLkyzx UsEdCXWC31OC2/jAgYeRYF6EUPCQEWTKgggUPZpwZ6NHkAkbt+Ox+/K54/m+K3HY1nAYxcMk5Vm2 GJJYhnMOmuILa0DQleZzkY0tCe1KIa6A9ki6Y0tkIAp36oWCtyOdenmYjc/SnLc8nvEwGVsfZzAP LDaLkdNSXSUdUpmQ25qUfk9x9iCOsjQO2QnpPmgEcCrNJ0CO0CAgTDaLYp+TfrfyJ1kMgyjIhscr OLJwEcSN1rMBC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06I/CSzLU5aSErF0ElAKiQU7Qf6goDI4U GV4bFabBFG31q3lCmRCRtfEDVHU5N6QDUlnEGj8IJ3HDyDQO5GyNnCsdZgK8Csva2VVcoDcVXmU9 Hb5c3/8sX7bSPHujPDolp1qYZqb6V7Juk1H1i8Yna2AQqdZbU9WpXwRXjlyJK+vtWzTfpoRKiYWe Y+pjIIt0eJTP6QavRCkLMvoVCQVYObK1xFENTEZWzblKT5/9u3xTraxfkDNr3TPyfy0qWUX4W1UW 5St/DTGUO+kqCbymv/2QSFh1oyoYCAMPxdWpN4NoEuY+ZxuVmNyZbVSXqHI+gUzXOCqNZNRFFxhR QCLxJhzERozCiyACN2Sn0VK2VD2tJk2xgWH4YDF+pbNmjH6LLRoSJ5ssog1S334TEJuvbbOq6khD v3WAaTU+CbXJjN8YG42YyZIWhnyx+A/CsiyOQ3VkHt6JmZc6YvZZ51jz95+2dpv5n90nO138/zVa 7e8/XXpi1tvErAv+HQt8EZV+qT8HglU8SxSG/aADflLlF72e4BkbxiyK8wi+6p9JkPCpF4T6N09T fKO111N/zOLfYCB8MovZBpbb7rFv/7JR9FwFGV2CBRn0/+P0p/0P7tvDM/fg/bt3h2dUCE1wVpWy Pfq7IBhg43KEpcAQfAp7p7xmZkN693mqkSzF5YMPtXq/9XobSNn/tvS61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuvb/rf0Hd6QCNQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"