#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=529319ad113629a713704107d496bad4761db7f0 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 H4sIAHKD5mcAA+07a3PbRpL5zF8xK8UF0CFBSZajFDe0T5Ef0a4tqyxlcymdgoKAoQgLBHAYUBJ3 K/nt190zA2AAkJQuse+qFlNliwR6evo93T3DpXcjRq4bxmHuuk66/OozjB0Y3+7v49/dg+e79H1v Z4f+qvHV7v7Bwe7znd393b2vdnZ3d57tf8V2Pgcx9bEQuZcx9iWW+v84lqj/ax67fpp+JvVv0v/+ t/sHNf3vHDx73un/S4ytra1eqX42ZPkiixlaheOJIGIZTzMueJx7eZjELIzzhB19800P502zZM5c d7qAOdx1WThPkyxnaQZQ8DT2cUpPgQX89moRRoEDqzmI3yX8ao59miXXmTcfsHkSAOy0+ODyAbvJ lykf9NhDBsEWk9x8wE68OT9HBEzk81z+7z4UHQHDpOMY/rvh92lGuOlD3pe8zZcgPc3JfBmFV5Xn Dj3Qb3PvWtyFuT8bsCi5VrIBQsP4WoP4nsh7PZdNJEQPZMDe8hg5sAFywKb9MdG+jRP5mNkFp7SU 83MW5jzrs+ELdpLEvEfAP526AAVI4X96AFTMSnIQc595Alfn40I04ZQeqBW4A1Lojw3BTZ07XM62 QOdWv1e841F97lmerZr7Q3gNb5+un/8uFPXFJUcoMAlFMAPFa799LQT53jJfVsTrnKOA26e+qFFY lRSOzAsFZ4dC8Awt/3WWJRkJttTiqQdGbrcpsbTSNVrUhKaOsoSeQSB7IuAfS50YkFVWfQ3WaqPJ thmPNOVNxoNQIGv802Y++Hyd/UjHabEfhZd0SD6m1lqhgicBMogATth/rCoqEj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