#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f35d451a628a14b876ede6fc9f776fa521bc94b3 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 H4sIAL16lWYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqyxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt/d23mxt7P17Jut7e1n2zvfsK0vQEujZUJ6KWNfY6j/j23zL6NMpKOrIBrx 6JYlCzmLo53exsZGr6wVbMje8YinnuTs8Lvv2DSN5+wXAGBHH51e72fBBUN4xxN+6DD2KQhDJmeB YFecpfwuDaTkEfMUlMKKV69oJMLmutNMZil3XRbMkziVLEmDSMLTaCKDOOr19GOxED3dxee3V1kQ +s41INevaQAkQ8HglXk1jdO5J5GK6Vyq15M45eY1T9M4VY99T3pu6EXX5t3n79WL+WKSJObhfBEG V+o5jmoey9SLBI7VfAV0uoBA0y8XSVAMcRwISezw+ZR9SHDOwu7v9xi0TYTl+8zus+FLFicy8VLB HQV1itcpwW185MDDSDAvQih4yQgyZUEEih5NuLPRI8iEjdvx2H313vF831U4bGs4jOJhknIpF0MS y3DOQVN8YQ0IutJ8LuTYUtCuEuIKaI+kO7aEBFG4Uy8UvB3p1MtCOT5PM97yesbDZGx9msE4MFkZ I6eVuio6lDIhtw0p/Z7m7GEcyTQO2SnpPmgEcCrNJkCOMCAgTDaLYp+TfrfyJ1kMgyiQw5MVHFm4 COJG69kABKzkwltk01I25Kaqp+SqcV2wSFD/lP9vFqRgsPyWpws2DXjo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