#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d30c9ffc34d9262eff9cd7b7bb311aaef3e79fba 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 H4sIABlFy2cAA+07a3PbRpL5zF8xK8UF0CFBSZYfxQ3tU+RHtGvLKkvZXEqnoCBgKMICARwGlMTd Sn77dffMABgAJKVL7LuqxVTZIoGenn5Pd89w6V2LkeuGcZi7rpMuv/kCYwfGs/19/Lv7/Okufd/b 2aG/anyzu//82d6z/b295/B+d3dn/+k3bOdLEFMfC5F7GWNfY6n/j2OJ+r/iseun6RdS/yb97z/b f17T/87z/Wed/r/G2Nra6pXqZ0OWL7KYoVU4nggilvE044LHuZeHSczCOE/Y4Xff9XDeNEvmzHWn C5jDXZeF8zTJcpZmAAVPYx+n9BRYwG8uF2EUOLCag/hdwq/m2CdZcpV58wGbJwHATosPLh+w63yZ 8kGP3WcQbDHJzQfs2JvzM0TARD7P5f/ufdERMEw6iuG/a36XZoSbPuR9ydt8CdLTnMyXUXhZee7Q A/02967EbZj7swGLkislGyA0jK80iO+JvNdz2URC9EAG7B2PkQMbIAds2h8T7ds4kY+ZXXBKSzk/ Z2HOsz4bvmTHScx7BPzTiQtQgBT+pwdAxawkBzH3mSdwdT4uRBNO6YFagTsghf7YENzUucXlbAt0 bvV7xTse1eee5tmquT+EV/D28fr570NRX1xyhAKTUAQzULz229dCkO8t82VFvM4ZCrh96ssahVVJ 4ci8UHB2IATP0PLfZFmSkWBLLZ54YOR2mxJLK12jRU1o6ihL6BkEskcC/rHUiQFZZdU3YK02mmyb 8UhT3mQ8CAWyxj9t5oPP19mPdJwW+1F4SYfkY2qtFSp4FCCDCOCE/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