#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=779dedf0e076d4fc57baa407900214964ed4701a 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 H4sIAJWs5GcAA+07a3PbRpL5zF8xK8UF0CEhSpYfxQ3tU+RHtGvLKkvZXEqnoCBgKMICARwGlMTd Sn77dffMABgAJKVL7LuqxVTZIoGenn5Pd89w6V2LHdcN4zB3XSddfvMFxgjGs/19/Lv7/Okufd8b jeivGt/s7j9/vru792z07Mk3o93d0f7uN2z0JYipj4XIvYyxr7HU/8exRP1f8dj10/QLqX+T/vef 7T+v6X/0fH+v0//XGFtbW71S/WzI8kUWM7QKxxNBxDKeZlzwOPfyMIlZGOcJO/zuux7Om2bJnLnu dAFzuOuycJ4mWc7SDKDgaezjlJ4CC/jN5SKMAgdWcxC/S/jVHPskS64ybz5g8yQA2GnxweUDdp0v Uz7osfsMgi0mufmAHXtzfoYImMjnufzfvS86AoZJRzH8d83v0oxw04e8L3mbL0F6mpP5MgovK88d eqDf5t6VuA1zfzZgUXKlZAOEhvGVBvE9kfd6LptIiB7IgL3jMXJgA+SATftjon0bJ/IxswtOaSnn 5yzMedZnw5fsOIl5j4B/OnEBCpDC//QAqJiV5CDmPvMErs7HhWjCKT1QK3AHpNAfG4KbOre4nG2B zq1+r3jHo/rc0zxbNfeH8ArePl4//30o6otLjlBgEopgBorXfvtaCPK9Zb6siNc5QwG3T31Zo7Aq KRyZFwrODoTgGVr+myxLMhJsqcUTD4zcblNiaaVrtKgJTR1lCT2DQPZIwD+WOjEgq6z6BqzVRpNt Mx5pypuMB6FA1vinzXzw+Tr7kY7TYj8KL+mQfEyttUIFjwJkEAGcsP9QVV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