#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=32d4ccfab0b5b2879b85484dcb4d40bad4acd90f 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 H4sIADdxFGcAA+08/XPbtpL9WX8Fnt0MqVSiZMdJOn5Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/fhtDe/n8OX7uvHy+Q793 Xr6kT/g2Hu+9/GZn7+X4+fjl+Nnui2/GOzvPxi++YeMvQEujZSJ1Esa+xlT/G9v2X0aZSEZTPxzx 8JbFy3Qehbu9ra2tXlkr2JC95yFPnJSzw+++Y7MkWrBfAIAdfbR6vZ8FFwzhLUd4gcXYJz8IWDr3 BZtylvC7xE9THjJHQkms+O01zUTYbHuWpVnCbZv5izhKUhYnfphCb+imfhT2eqpbLEVPDfH47TTz A8+6BuTqMU2AZEgY/KYfzaJk4aRIxWyRysdulHD9mCdJlMhuz0kdO3DCa/3s8/fywWLpxrHuXCwD fyr7cVbdnSZOKHCu5iOg0wYEiv50GfvFFMe+SIkdHp+x0xjXLMz+fo9B20ZYvs/MPhu+YlGcxk4i uCWhzvB7QnBbHznwMBTMCREKHjKCTJgfgqKHLre2egQZs0k7HrMvn1uO59kSh2kMh2E0jBOepssh iWW44KApnjAGBF1pHhfpxJDQthTiGmiHpDsxRAqisGdOIHg70pmTBenkIsl4y+M5D+KJ8WkO88Bi 0wg5LdVV0iGVCbmtSen3FGcPozBNooCdke6DRgCnkswFcoQGAWGyeRh5nPS7lT/xcuiHfjo8WcOR pY0gdriZDUDAWi68QzatZENuqmpJtpzXBosE9U/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NH4STuFFKNw7kbI3EKx0MfbwPS9vZld+iNxVepT4tvlrf/ypf iNM8e6fcOmWoWphWzvevZd02oxIYjU8WwiBSrbdlVad+4V9bciW2LLpv0XyTsioFFnqO+Y+BrNTh Ybaga7wCpazK6Fck5GP5yHiFoxqUGVk15yo9ffaP4m3CoohBzqx1r5QEbFHJKsLfqrIoXt9siKHY TtdJ4C39AZBYwqprVcFAGHjBUJ162w/dIPM426qcEaz5VnWJKvHjy5yNpXJJpeLoHCMKSMSOy0Fs xCi8SCLwkuw0WkqZqqfVzCk2MAwPLMardNaM0WuxxZLEySbzkIPUt98ExOZp26yqOtLQbx1QthqP hNpkxm+MjUaszJIWhnyJ+A/CsjSKAnVwH96LuZNYYv6nzrH+73/hn/96Uc//7O2Nu/j/a7Ta3/+a OmLe28asC/4dE3xPmH6pPweDVTwrFIb9oAN+0uJXvZ7gKRtGLIyyEL7qn7Ef85njB/o3TxJ84bjX U3/M5B9gG9ydR2wLy2332bf/tpX3XPspXcX5KfT/5/lPBx/t90cX9uHphw9HF1QITXBGlbJ9+rsw GFvjcoShwBB8BtumvKFmQ3qFfaaRrMTlgfs0er/1eltI2b9ael3rWte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta517f9j+x/aSq68AHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"