#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3c6de1ca79e684d9918d12ec28d68c76e3e59cf7 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 H4sIAN1XwGcAA+08a3PbOJL5rF+BtSdFKiNRsuM8SjtKzuM8xneJ44o9Ozfl1bBoErIYUySPoGxr t2Z++3U3AJKgKMm5SbJXd0RVLIlsNPqNBtDI0rsWgzzzYjFNsrmTLh98+TaE9vTgAD/3nj3Zo9/7 wyF9wqOD/SePH+wdPHs6HD55/OTpswfDvb3HB/sP2PAr0LLSFiL3Msa+xVD/G9vOzk6nqn7WZ/ki i9ksmSdXPObJQrA4jJ47nggilvE044LHeZjELIzzhM14zjMN2VmCNdUgPYTt4DDTLJkz150uYADu uiycp0mWszQDRPA09glSgQX85nIRRoEDqB0kwCW0qk9840UL3lOfbvktb+qOVBnd7fdJsIig1ymQ nnnzHpsnAfSZFl/cvNdh92nX+TIFRPQBnZjI5+ov/rrmd2l2b1zHMXQ5T6553GNn4VXsoaB67MSb 83NA31WymS/9NHXmyyi81AxFyVWP5d6VuA1zf6bggKQwvtIgvicA+7tQ5J2Oy8bYpdPpAKvsPbjA j/xsOb9MIhvl2B0RvbuIgY+YrWXbZf0XwFpGb8MpydyBUe0u+8u40IUjMY0KnjMvFJwdCsEz1PDr LEsy23p9l3I/5wGT4D12leTsobDYQ8LUpe4ZJ2NE2hUVjgYnIEcYPCB32zlAqAv9ZLKFGQS+NysI fG9GJLBkI8z5XLNyrr0R0GbbuVEm1iGQn09dfMkkA/QILGJWmobExzyBpPCSMRAAPrALvsEWuyPD bBXiKgtksGrMrgEcJT7Aki3bVurlM6vHLH+2iK/hy7DHH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