#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c8c3f73215ffc604380191a97a780881af6b939e 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 H4sIAOm2O2cAA+08a3PjNpL5rF+BtTNFaiJRfo5T3mjmHM8jvvPYLtvZuZTPYdEkZHFMkTyCtK3d Sn77dTcAviXZm8zs1R1RNSMJbDQa/UID3fTcuROjOfxnzxw/tOL5N39+24C2t7uLn5t7u5v0e3Nv jz7h28bGzt43mzt7m6/2tre3Nl59s7G5ub25/Q3b+AK0NFomUidh7GtM9b+xrf9llIlkdOOHIx7e s3ieTqNwq7e2ttYrawUbsg885ImTcnb43XdskkQz9gsAsKNzq9f7WXDBEN5yhBdYjH3yg4ClU1+w G84S/pD4acpD5kgoiRW/vaGZCJttT7I0S7htM38WR0nK4sQPU+gN3dSPwl5PdYu56KkhHr+/yfzA s24BuXpMEyAZEga/6UeTKJk5KVIxmaXysRslXD/mSRIlsttzUscOnPBWP/v8vXwwm7txrDtn88C/ kf04q+5OEycUOFfzEdBpAwJFfzqP/WKKY1+kxA6PT9hpjGsWZn+/x6CtIyzfZ2afDV+zKE5jJxHc klBn+D0huLVzDjwMBXNChIKHjCAT5oeg6KHLrbUeQcZs3I7H7MvnluN5tsRhGsNhGA3jhKfpfEhi Gc44aIonjAFBV5rHRTo2JLQthbgE2iHpjg2RgijsiRMI3o504mRBOr5MMt7yeMqDeGx8msI8sNg0 Qk5LdZV0SGVCbmtS+j3F2cMoTJMoYGek+6ARwKkkc4EcoUFAmGwaRh4n/W7lTzwf+qGfDk+WcGRu I4gdrmYDELCUC++RTQvZkJuqWpIt57XBIkH9E/7fmZ+AwfJ7nszZxOe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