#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=9df1e68585e79e99c9e4d55dcb7df7844169e411 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 H4sIAPBHhWcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+3x3e2f3ybPtZ99sbW8/2Xr6Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/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+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