#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f4f49acff60b8df76be2ab34f1ceba80364add4b 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 H4sIAPhYeWcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJs52nuzs7z7/Z2t5+sr39Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/mmUi3R0FUQj Ht2yZJHN4mint7Gx0TO1gg3ZWx7x1Ms4O/juOzZN4zn7BQDY4anT6/0suGAI73jCDx3GPgRhyLJZ INgVZym/S4Ms4xHzJJTEit9e0kyEzXWneZan3HVZME/iNGNJGkQZ9EaTLIijXk91i4XoqSE+v73K g9B3rgG5ekwTIBkSBr/pR9M4nXsZUjGdZ/LxJE65fszTNE5lt+9lnht60bV+9vF7+WC+mCSJ7pwv wuBK9uOsujtLvUjgXM1HQKcLCBT92SIJyimOApERO3w+Ze8TXLOw+3s9Bm0TYfkes/ts+ILFSZZ4 qeCOhDrB7ynBbZxy4GEkmBchFDxkBJmyIAJFjybc2egRZMLG7XjsvnzueL7vShy2NRxG8TBJeZYt hiSW4ZyDpvjCGhB0pflcZGNLQrtSiCugPZLu2BIZiMKdeqHg7UinXh5m4/M05y2PZzxMxtaHGcwD i81i5LRUV0mHVCbktial31OcPYijLI1DdkK6DxoBnErzCZAjNAgIk82i2Oek3638SRbDIAqy4fEK jixcBHGj9WwAAlZy4Q2yaSkbClNVS3LlvC5YJKh/yv+ZB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