#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=e9ba407be0c359463e3f2795ef5b31f626556d2a 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 H4sIAMYiPGcAA+08/VPjRrL52X/FHGRL8saWMcuGFBfvPsJ+hPdYoIDcvhRHVEIaYy2ypKeRAN9V 8re/7p4ZfduGS3bvrk5TtWt99PT09Nf0TLdYOLditID/7Lnjh1a8+OqPb1vQdl++xN/x7ssx3Y93 d+kXrra2dna/Gu/sjne3tsfjnZ2vtsbjF1svvmJbn4GWRstE6iSMfYmh/hXb5p9GmUhG13444uEd ixfpLAq3exsbG72yVrAhe89DnjgpZwfffMOmSTRnPwMAOzyzer2fBBcM4S1HeIHF2Ec/CFg68wW7 5izh94mfpjxkjoSSWPHqNY1E2Gx7mqVZwm2b+fM4SlIWJ36YwtPQTf0o7PXUY7EQPdXF43fXmR94 1g0gV69pACRDwuCVfjWNkrmTIhXTeSpfu1HC9WueJFEiH3tO6tiBE97od5++ky/mCzeO9cP5IvCv 5XMcVT9OEycUOFbzFdBpAwJFf7qI/WKII1+kxA6PT9lJjHMWZn+vx6BtIizfY2afDV+xKE5jJxHc klCneJ0Q3MYZBx6GgjkhQsFLRpAJ80NQ9NDl1kaPIGM2acdj9uV7y/E8W+IwjeEwjIZxwtN0MSSx DOccNMUTxoCgK83jIp0YEtqWQlwB7ZB0J4ZIQRT21AkEb0c6dbIgnVwkGW95PeNBPDE+zmAcmGwa Iaeluko6pDIhtzUp/Z7i7EEUpkkUsFPSfdAI4FSSuUCO0CAgTDYLI4+TfrfyJ14M/dBPh8crOLKw EcQO17MBCFjJhXfIpqVsyE1VTcmW49pgkaD+Cf+/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