#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=5c858a35b2e432b670add53389154ec9b8390e21 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 H4sIAEbQlWYAA+08a3PbRpL5zF8xK8UF0CFBPe2UNrRPkR/RnS2rLGV9KZ2CgoihCAsEcJiBJO5W 8tuvu2cGb5LSJvZe1WKqbOLR09PTr+mZbmjh3YjRAv5z514QOcnimz+/bUF7vr+Pv9vP97fpfvv5 c/qFq62tveffbO8929vf3YfbvW+2trd3t/a+YVtfgJZGy4T0Usa+xlD/H9vmX0aZSEdXQTTi0S1L FnIWRzu9jY2NXlkr2JC95RFPPcnZ0XffsWkaz9kvAMCOPzq93s+CC4bwjif80GHsUxCGTM4Cwa44 S/ldGkjJI+YpKIUVr17SSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i89vr7Ig9J1r QK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0IuuzbvP36sX88UkSczD+SIMrtRz HNU8lqkXCRyr+QrodAGBpl8ukqAY4l0gJLHD51P2IcE5C7t/0GPQNhGWHzC7z4YvWJzIxEsFdxTU KV6nBLfxkQMPI8G8CKHgJSPIlAURKHo04c5GjyATNm7HY/fVe8fzfVfhsK3hMIqHScqlXAxJLMM5 B03xhTUg6ErzuZBjS0G7SogroD2S7tgSEkThTr1Q8HakUy8L5fg8zXjL6xkPk7H1aQbjwGRljJxW 6qroUMqE3Dak9Huas0dxJNM4ZKek+6ARwKk0mwA5woCAMNksin1O+t3Kn2QxDKJADk9WcGThIogb rWcDELCSC2+QTUvZkJuqnpKrxnXBIkH9U/6/WZCCwfJbni7YNO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