#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b1e60b517aeb0730280fa7bbcb4e42a9f048a01f 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 H4sIADy6PGcAA+08a3PbRpL5zF8xK8UF0CFBUZbtlDa0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVRIJoKenp1/TM93g0rkRoyX8sxeOH1rx8ps/v+1Ae/n8OX6OXz4f0/X4 5Uv6hG87O3svvxnvvRy/HD/be7kLz8fjZ+PxN2znC9DSaJlInYSxrzHU/8a2/ZdRJpLR1A9HPLxl 8TKdR+Fub2trq1fWCjZk73nIEyfl7PC779gsiRbsFwBgRx+tXu9nwQVDeMsRXmAx9skPApbOfcGm nCX8LvHTlIfMkVASK357TSMRNtueZWmWcNtm/iKOkpTFiR+mcDd0Uz8Kez11WyxFT3Xx+O008wPP ugbk6jENgGRIGPymH82iZOGkSMVskcrHbpRw/ZgnSZTI256TOnbghNf62efv5YPF0o1jfXOxDPyp vI+j6ttp4oQCx2o+AjptQKDoT5exXwxx7IuU2OHxGTuNcc7C7O/3GLRthOX7zOyz4SsWxWnsJIJb EuoMvycEt/WRAw9DwZwQoeAhI8iE+SEoeuhya6tHkDGbtOMx+/K55XieLXGYxnAYRsM44Wm6HJJY hgsOmuIJY0DQleZxkU4MCW1LIa6Bdki6E0OkIAp75gSCtyOdOVmQTi6SjLc8nvMgnhif5jAOTDaN kNNSXSUdUpmQ25qUfk9x9jAK0yQK2BnpPmgEcCrJXCBHaBAQJpuHkcdJv1v5Ey+Hfuinw5M1HFna CGKHm9kABKzlwjtk00o25KaqpmTLcW2wSFD/hP935idgsP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