#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1b8213e291b3fdc968c88e8a0d553583d255c70b 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 H4sIAHt0gWcAA+08a3PbOJLzWb8Ca0+KVEai/Mp4yjtKzuM8xruJ44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaPvPnuHn9v6zbfq9 s7VFn/hof+v7b7b39ve2dvZ3tnbh+fb2zv6zb9jWF6Cl0XKReSljX2Oq/4tt8y+jXKSjqyAa8eiW JYtsFkc7vY2NjZ6pFWzI3vCIp17G2dF337FpGs/ZrwDAjj84vd4vgguG8I4n/NBh7GMQhiybBYJd cZbyuzTIMh4xT0JJrPjtBc1E2Fx3mmd5yl2XBfMkTjOWpEGUQW80yYI46vVUt1iInhri89urPAh9 5xqQq8c0AZIhYfCbfjSN07mXIRXTeSYfT+KU68c8TeNUdvte5rmhF13rZ59+kA/mi0mS6M75Igyu ZD/Oqruz1IsEztV8BHS6gEDRny2SoJzibSAyYofPp+x9gmsWdv+gx6BtIiw/YHafDZ+zOMkSLxXc kVCn+D0luI0PHHgYCeZFCAUPGUGmLIhA0aMJdzZ6BJmwcTseuy+fO57vuxKHbQ2HUTxMUp5liyGJ ZTjnoCm+sAYEXWk+F9nYktCuFOIKaI+kO7ZEBqJwp14oeDvSqZeH2fg8zXnL4xkPk7H1cQbzwGKz GDkt1VXSIZUJua1J6fcUZ4/iKEvjkJ2S7oNGAKfSfALkCA0CwmSzKPY56Xcrf5LFMIiCbHiygiML F0HcaD0bgICVXHiNbFrKhsJU1ZJcOa8LF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