#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4e6f61c890b67c67557993e02245aaff01191e78 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 H4sIAHTynWYAA+08a3PbRpL5zF8xK8UF0CFBvWyltKF9ivyI7mxZZSnrS+kUFEQMRVgggMMMJHG3 kt9+3T0zeJOUNrH3qhZTZROPnp6efk3PdEML70aMFvCfO/eCyEkW3/z5bQva/rNn+Lu9/2yb7rf3 9+kXrra29va/2d57vre/u7+9tb/7zdb29u7282/Y1hegpdEyIb2Usa8x1P/HtvmXUSbS0VUQjXh0 y5KFnMXRTm9jY6NX1go2ZG95xFNPcnb03XdsmsZz9gsAsOOPTq/3s+CCIbzjCT90GPsUhCGTs0Cw K85SfpcGUvKIeQpKYcWrlzQSYXPdaSazlLsuC+ZJnEqWpEEk4Wk0kUEc9Xr6sViInu7i89urLAh9 5xqQ69c0AJKhYPDKvJrG6dyTSMV0LtXrSZxy85qnaZyqx74nPTf0omvz7vP36sV8MUkS83C+CIMr 9RxHNY9l6kUCx2q+AjpdQKDpl4skKIZ4FwhJ7PD5lH1IcM7C7h/0GLRNhOUHzO6z4QsWJzLxUsEd BXWK1ynBbXzkwMNIMC9CKHjJCDJlQQSKHk24s9EjyISN2/HYffXe8XzfVThsaziM4mGScikXQxLL cM5BU3xhDQi60nwu5NhS0K4S4gpoj6Q7toQEUbhTLxS8HenUy0I5Pk8z3vJ6xsNkbH2awTgwWRkj p5W6KjqUMiG3DSn9nubsURzJNA7ZKek+aARwKs0mQI4wICBMNotin5N+t/InWQyDKJDDkxUcWbgI 4kbr2QAErOTCG2TTUjbkpqqn5KpxXbBIUP+U/28WpGCw/JanC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