#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1409f22edfa0d78a41912bdbbe1472462b62a32c 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 H4sIAOYw5mcAA+07/XPbNrL9WX8Fzm6GVCpR/kqd0VXJc52P+i5xPLF7fR2fyqFJyGJMkXwEZVt3 0/7tt7sASIKiJPva5N3METOJJXKx2G/sLqCFdyMGrhvGYe66Trr46jOMHRjfHhzg393DZ7v0fW9n h/6q8dXuweHh7sE+PAe43d2d/YOv2M7nIKY+5iL3Msa+xFL/iWOB+r/mseun6WdS/yb9H3x7cFjT /87h/rNW/19ibG1tdUr1sz7L51nM0CocTwQRy3iaccHj3MvDJGZhnCfs+JtvOjhvkiUz5rqTOczh rsvCWZpkOUszgIKnsY9TOgos4LdX8zAKHFjNQfwu4Vdz7LMsuc68WY/NkgBgJ8UHl/fYTb5Iea/D HjIItpjk5j126s34BSJgIp/l8n/3oegIGCadxPDfDb9PM8JNH/Ku5G22AOlpTmaLKLyqPHfogX6b e9fiLsz9aY9FybWSDRAaxtcaxPdE3um4bCQhOiAD9pbHyIENkD026Q6J9m2cyIfMLjilpZyfsjDn WZf1X7DTJOYdAv7xzAUoQAr/0wOgYlqSg5i7zBO4Oh8Wogkn9ECtwB2QQndoCG7i3OFytgU6t7qd 4h2P6nPP82zV3O/Da3j7dP38d6GoLy45QoFJKILpKV67zWshyHeW+bIiXucCBdw89UWNwqqkcGRe KDg7EoJnaPmvsyzJSLClFs88MHK7SYmlla7RoiY0dZQldAwC2RMB/1jqxICssuprsFYbTbbJeKQp bzIehAJZ458m88Hn6+xHOk6D/Si8pEPyMbXWChU8CZBBBHDC7mNVUZHIOc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