#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=39ea4325fb0a294a2f2d96facb431f792c33168a 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 H4sIAFXEfGcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJ8+3d7efPdr/Z2t5+sv3kG7b1BWhptFxkXsrY15jq/2Lb/NMoF+noKohG PLplySKbxdFOb2Njo2dqBRuytzziqZdxdvDdd2yaxnP2CwCww1On1/tZcMEQ3vGEHzqMfQjCkGWz QLArzlJ+lwZZxiPmSSiJFb+9pJkIm+tO8yxPueuyYJ7EacaSNIgy6I0mWRBHvZ7qFgvRU0N8fnuV B6HvXANy9ZgmQDIkDH7Tj6ZxOvcypGI6z+TjSZxy/ZinaZzKbt/LPDf0omv97OP38sF8MUkS3Tlf hMGV7MdZdXeWepHAuZqPgE4XECj6s0USlFMcBSIjdvh8yt4nuGZh9/d6DNomwvI9ZvfZ8AWLkyzx UsEdCXWC31OC2zjlwMNIMC9CKHjICDJlQQSKHk24s9EjyISN2/HYffnc8XzflThsaziM4mGS8ixb DEkswzkHTfGFNSDoSvO5yMaWhHalEFdAeyTdsSUyEIU79ULB25FOvTzMxudpzlsez3iYjK0PM5gH FpvFyGmprpIOqUzIbU1Kv6c4exBHWRqH7IR0HzQCOJXmEyBHaBAQJptFsc9Jv1v5kyyGQRRkw+MV HFm4COJG69kABKzkwhtk01I2FKaqluTKeV2wSFD/lP8zD1IwWH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