#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1cb83a24b2d4072c94813776a9e3137955701cba 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 H4sIAG90g2YAA+08/XPbNrL9WX8Fzm6GVCrRH7GTjK5KznU+6neO44nd6+v4VA5NQhJjiuQjKNu6 m/Zvv90FQBIUJTnXJPdmjphJJJGLxWJ3sdgPwAvvRuycnZz9z5Er5teTzEunTrr45rO2XWhPDw7w c+/Z4R793nv2jD6hHe4+efLN3sHTg92nz/Z3nz75ZncPPg6/Ybufl4zmNhe5lzH2NYb6/9i2trY6 i0Yd6OCrcZbMmOuO5/k8467LwlmaZDlLszDO4Wns52ESdyTY9TyMAg0Rh/FHz43C68o7p3iooaJk 0mPH79+dn5y+/nDh/u3ow8nR2eVFp+OyIb7sdLbZ5ftX7wdMTJM5YJ96t5wFPOVxwGM/5ILdhfkU 3rrXYexli86Hn05fX7jnv0B/iwbdoUH72Tziop8uHDG1Op1OwMfsDF+8xdna2bw76DBoMfTL5g5M CX/BNz+ZzXic29ZbHvPMy3nArhfskbDYI+BL7M2AK90C2hNBhPPLgBTbIr7if/TcKsF8X5FbgXGz eZyHgC7nIgcIq0fQRoOJi+GVtbMzW/hpuqN6WKMG0JmXZ+H9cJm3iopthoMymF4aRjzryD5hTFNC 5hFN+MSid8TmBPhuW67kKymMnN4jsZNnXiwi4I+T3+fInAJZl3mCjQed6iRggKsojLkjgMrU7rJx kjF8wMKYjUeSxDTj4/AeaXEnPKaRdh4Jh+ZujEDQyTxP5zlhVh2/YxbxkVV+T62RlLNDk7BVL5OB FgzXT8JI9IGs/jwO72vCwCmYT0Cfo9APc5AOinZHTO9AsaSc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