#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=7c4b7664722104054d74e45cb00f77c30c931431 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 H4sIADwwmWYAA+08a3PbRpL5zF8xK8UF0CFBvWyntKF9ivyI7mRZZSnrS+kUFEQMRVgggMMMJHG3 kt9+3T0zeJOUNrH3qhZTZROPnp6efk3PdEML70aMFvCfO/eCyEkW3/z5bQvai2fP8Hf7xbNtut9+ 8YJ+4Wpra+/FN9t7z/ee7+zi/Tdb29s7L55/w7a+AC2NlgnppYx9jaH+P7bNv4wykY6ugmjEo1uW LOQsjnZ6GxsbvbJWsCF7xyOeepKzw+++Y9M0nrNfAIAdfXR6vZ8FFwzhHU/4ocPYpyAMmZwFgl1x lvK7NJCSR8xTUAorXr2ikQib604zmaXcdVkwT+JUsiQNIglPo4kM4qjX04/FQvR0F5/fXmVB6DvX gFy/pgGQDAWDV+bVNE7nnkQqpnOpXk/ilJvXPE3jVD32Pem5oRddm3efv1cv5otJkpiH80UYXKnn OKp5LFMvEjhW8xXQ6QICTb9cJEExxHEgJLHD51P2IcE5C7u/32PQNhGW7zO7z4YvWZzIxEsFdxTU KV6nBLfxkQMPI8G8CKHgJSPIlAURKHo04c5GjyATNm7HY/fVe8fzfVfhsK3hMIqHScqlXAxJLMM5 B03xhTUg6ErzuZBjS0G7SogroD2S7tgSEkThTr1Q8HakUy8L5fg8zXjL6xkPk7H1aQbjwGRljJxW 6qroUMqE3Dak9Huas4dxJNM4ZKek+6ARwKk0mwA5woCAMNksin1O+t3Kn2QxDKJADk9WcGThIogb rWcDELCSC2+RTUvZkJuqnpKrxnXBIkH9U/6/WZCCwfJbni7YN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