#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=49671dec60a79f911d6c4e0851f044baf5e1679c 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 H4sIAB2apGYAA+08/XPbNrL9WX8Fzm6GVCpR/kqT0VXJc52P+i5xPLF7fR0/l0OTkMWYIvkIyrbu pv3b3+4CIAmSkpxrk3tzR8zEksjFYrFf2F0AWXo3YpRnXiymSTZ30uVXf3zbgfbtwQF+7j59sku/ d58+pU/4drD3ZP+r3YNvn+zu7h48Pdj/amd3d//Jzlds5zPQ0mgLkXsZY19iqP+PbWtrq1cVPxuy fJHFbJbMk2se82QhWBxGzxxPBBHLeJpxweM8TGIWxnnCZjznmYbsLUGbapAewvZwmGmWzJnrThcw AHddFs7TJMtZmgEieBr7BKnAAn57tQijwAHUDhLgElrVJ771ogUfqE+3/Ja3dUeqjO72uyRYRNDr FEjPvPmAzZMA+kyLL24+6LGHtJt8mQIi+oBOTORz9Rd/3fD7NHswruMYupwnNzwesLPwOvaQUQN2 4s35OaDvK97Ml36aOvNlFF7pCUXJ9YDl3rW4C3N/puCApDC+1iC+JwD721DkvZ7LJtil1+vBVNk7 MIHv+dlyfpVENvKxPyZ6txEDHzNb87bPhs9hahm9DafEcwdGtfvsT5NCFo7ENC7mnHmh4OxQCJ6h hF9lWZLZ1qv7lPs5D5gEH7DrJGePhMUeEaY+dc84KSPSrqhwNDgBOcKYA85u8wwQ6kI/udwwGQR+ 8FQQ+METkcByGmHO53oq59oaAW22eTZKxXoE8uOpiy+ZnAA9Ao2Ylaoh8TFPICm8nBgwAB/YxbxB F/tjQ20V4uoUSGHVmH0DOEp8gCVdtq3Uy2fWgFn+bBHfw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