#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3ad1aeee4e9231851c3572c5c0f6a2116bb0a261 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 H4sIACMTG2cAA+08/XPbtpL9WX8Fnt0MqVSibMdxOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9urlS/zcfvVym35v v3pFn/Bta2v31Tfbu6+29va2t3ewf3v7xfbLb9jWF6Cl0TKROgljX2Oq/41t8y+jTCSjiR+OeHjH 4kU6i8Kd3sbGRq+sFWzIPvCQJ07K2eF337FpEs3ZLwDAjs6tXu9nwQVDeMsRXmAx9skPApbOfMEm nCX8PvHTlIfMkVASK357QzMRNtueZmmWcNtm/jyOkpTFiR+m0Bu6qR+FvZ7qFgvRU0M8fjfJ/MCz bgC5ekwTIBkSBr/pR9MomTspUjGdp/KxGyVcP+ZJEiWy23NSxw6c8EY/+/y9fDBfuHGsO+eLwJ/I fpxVd6eJEwqcq/kI6LQBgaI/XcR+McWxL1Jih8en7DTGNQuzv99j0DYRlu8zs8+Gr1kUp7GTCG5J qDP8nhDcxjkHHoaCOSFCwUNGkAnzQ1D00OXWRo8gYzZux2P25XPL8Txb4jCN4TCMhnHC03QxJLEM 5xw0xRPGgKArzeMiHRsS2pZCXAHtkHTHhkhBFPbUCQRvRzp1siAdXyYZb3k840E8Nj7NYB5YbBoh p6W6SjqkMiG3NSn9nuLsYRSmSRSwM9J90AjgVJK5QI7QICBMNgsjj5N+t/InXgz90E+HJys4srAR xA7XswEIWMmF98impWzITVUtyZbz2mCRoP4J/+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