#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=37773a3c74909a30dab129d2dd449eb805900cad 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 H4sIAHj2N2cAA+08/XPbNrL9WX8Fzm6GVCpRtmPXHV+VPNf5qN9zbE/sXl7H53IoErIYUyQfQdrW 3bR/+9tdAPyWZF+b3M0dMZNIAheLxX5hgV164dyK0QL+s+eOH1rx4qs/vm1B29/bw8/t/b1t+r29 v0+f8G1ra3f/q+3d/e29/f0XWzvQv739Ynv/K7b1GWhptEykTsLYl5jqX7Ft/mmUiWQ08cMRD+9Y vEhnUbjT29jY6JW1gg3ZOx7yxEk5O/rmGzZNojn7GQDY8Qer1/tJcMEQ3nKEF1iMffSDgKUzX7AJ Zwm/T/w05SFzJJTEit9e0UyEzbanWZol3LaZP4+jJGVx4ocp9IZu6kdhr6e6xUL01BCP300yP/Cs G0CuHtMESIaEwW/60TRK5k6KVEznqXzsRgnXj3mSRIns9pzUsQMnvNHPPn0nH8wXbhzrzvki8Cey H2fV3WnihALnaj4COm1AoOhPF7FfTHHii5TY4fEpO4txzcLsH/QYtE2E5QfM7LPhSxbFaewkglsS 6hy/JwS38YEDD0PBnBCh4CEjyIT5ISh66HJro0eQMRu34zH78rnleJ4tcZjGcBhGwzjhaboYkliG cw6a4gljQNCV5nGRjg0JbUshroB2SLpjQ6QgCnvqBIK3I506WZCOL5OMtzye8SAeGx9nMA8sNo2Q 01JdJR1SmZDbmpR+T3H2KArTJArYOek+aARwKslcIEdoEBAmm4WRx0m/W/kTL4Z+6KfD0xUcWdgI Yofr2QAErOTCW2TTUjbkpqqWZMt5bbBIUP+E/1/mJ2Cw/I4nCz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