#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a023e7279b0707843e8d4c805675e96d3f4ef22e 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 H4sIAFxnWGcAA+07a3PbOJL5rF+BsSdFKiNRfuVR2lGyHucxvkscV+zZ3JRPw6JESGJMkTyCtK3d mvnt190A+JZk30xydXVElS2JbDQa/UI30Fg512Iw54E9jSIrWj36Gm0P2rOjI/qEVv08enb0/NH+ 0fODZ3vPDg+fPn+0t3/w9GjvEdv7KtRUWioSJ2bsURyGySa4be//j7adnZ1OLn7WZ0kaB2wFWmE5 wvVZzKOYCx4kTuKFAfOCJGQnP/zQwX6zOFwy256l0IfbNvOWURgnLIoBCp4GU+zSUWAuv5mknu9a MJqF+G3Cr/qY53E4j51ljy1DF2Bn2Reb99h1sop4r8Pu0wg262QnPXbmLPklImAiWSbyv31fdAQM nU4D+HfN76KYcNOXpCvntlwB9/RMlivfmxSeW/RAv02cubj1kumix/xwrngDhHrBXINMHZF0OjYb SYgO8IC94wHOwATIHpt1h0T7LnbkQ2ZmM6WhrM+xl/C4y/ov2VkY8A4B/3JuAxQghf/0AKhY5OQg 5i5zBI7OhxlrvBk9UCNwC7jQHZYYN7NucTjTAJkb3U72jvvVvhdJvK7vT94c3j7Z3P+9J6qDyxkh wyQUwfTUXLvNYyHIj0b5ZYG91iUyuLnrywqFRU5hix1PcHYsBI9R89/EcRgTY3Mpnjug5GaTEHMt 3SBFTWhkKU3olAhkjwX8scgKAFlh1DegrSaqbJPySFXepjwIBbzGjyb1weeb9EcaToP+KLwkQ7Ix NdYaETx2cYIIYHndh4qiwJEL8Gd8CW7NRIWpMUVb/WaeiAQoB2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