#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f6c45f4f633c8ff1d4b0e46b7177eb5f7a68f4c6 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 H4sIAKrEdmcAA+08a3PbOJL7Wb8Ca0+KVEai/MpkyjtKzuM8xneJ47I9m5vyeli0CFmMKZJHkLa1 WzO//bobAAk+JNk7SXarlqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjT529b0J4/e4af28+fbdPv na0t+sRHz7e++9P23vPdZ8/2dra34fn29i48ZltfgJZGy0XmpYx9jan+Hdvmn0e5SEdXQTTi0S1L FtksjnZ6GxsbPVMr2JC95RFPvYyzw2+/ZdM0nrNfAIAdnTq93s+CC4bwjif80GHsYxCGLJsFgl1x lvK7NMgyHjFPQkms+O0lzUTYXHeaZ3nKXZcF8yROM5akQZRBbzTJgjjq9VS3WIieGuLz26s8CH3n GpCrxzQBkiFh8Jt+NI3TuZchFdN5Jh9P4pTrxzxN41R2+17muaEXXetnn76XD+aLSZLozvkiDK5k P86qu7PUiwTO1XwEdLqAQNGfLZKgnOJdIDJih8+n7EOCaxZ2f7/HoG0iLN9ndp8NX7A4yRIvFdyR UCf4PSW4jVMOPIwE8yKEgoeMIFMWRKDo0YQ7Gz2CTNi4HY/dl88dz/ddicO2hsMoHiYpz7LFkMQy nHPQFF9YA4KuNJ+LbGxJaFcKcQW0R9IdWyIDUbhTLxS8HenUy8NsfJ7mvOXxjIfJ2Po4g3lgsVmM nJbqKumQyoTc1qT0e4qzh3GUpXHITkj3QSOAU2k+AXKEBgFhslkU+5z0u5U/yWIYREE2PF7BkYWL IG60ng1AwEouvEE2LWVDYapqSa6c1wWLBPV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