#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=38656699f7cc0892a0c817c397d6e54d51d6560b 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 H4sIAHfQbWcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3Z3d5/Ag6ffbG1v78JjtvUFaGm0XGReytjXmOr/Ytv80ygX6egyiEY8umHJ IpvF0U5vY2OjZ2oFG7I3POKpl3F2+N13bJrGc/YLALCjD06v97PggiG84wk/dBj7GIQhy2aBYJec pfw2DbKMR8yTUBIrfntBMxE2153mWZ5y12XBPInTjCVpEGXQG02yII56PdUtFqKnhvj85jIPQt+5 AuTqMU2AZEgY/KYfTeN07mVIxXSeyceTOOX6MU/TOJXdvpd5buhFV/rZp+/lg/likiS6c74Ig0vZ j7Pq7iz1IoFzNR8BnS4gUPRniyQop3gbiIzY4fMpe5/gmoXd3+8xaJsIy/eZ3WfD5yxOssRLBXck 1Al+Twlu4wMHHkaCeRFCwUNGkCkLIlD0aMKdjR5BJmzcjsfuy+eO5/uuxGFbw2EUD5OUZ9liSGIZ zjloii+sAUFXms9FNrYktCuFuALaI+mOLZGBKNypFwrejnTq5WE2Pktz3vJ4xsNkbH2cwTyw2CxG Tkt1lXRIZUJua1L6PcXZwzjK0jhkJ6T7oBHAqTSfADlCg4Aw2SyKfU763cqfZDEMoiAbHq/gyMJF EDdazwYgYCUXXiOblrKhMFW1JFfO64JFgvqn/J95kILB8hueL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