#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=044a2a7e18d3546c83928b7b4d8be90196644164 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 H4sIADxJn2YAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqyxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt998Xx3d3dr65ut7e1n28++YVtfgJZGy4T0Usa+xlD/H9vmX0aZSEdXQTTi 0S1LFnIWRzu9jY2NXlkr2JC94xFPPcnZ4XffsWkaz9kvAMCOPjq93s+CC4bwjif80GHsUxCGTM4C wa44S/ldGkjJI+YpKIUVr17RSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i89vr7Ig 9J1rQK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0IuuzbvP36sX88UkSczD+SIM rtRzHNU8lqkXCRyr+QrodAGBpl8ukqAY4jgQktjh8yn7kOCchd3f7zFomwjL95ndZ8OXLE5k4qWC OwrqFK9Tgtv4yIGHkWBehFDwkhFkyoIIFD2acGejR5AJG7fjsfvqveP5vqtw2NZwGMXDJOVSLoYk luGcg6b4whoQdKX5XMixpaBdJcQV0B5Jd2wJCaJwp14oeDvSqZeFcnyeZrzl9YyHydj6NINxYLIy Rk4rdVV0KGVCbhtS+j3N2cM4kmkcslPSfdAI4FSaTYAcYUBAmGwWxT4n/W7lT7IYBlEghycrOLJw EcSN1rMBCFjJhbfIpqVsyE1VT8lV47pgkaD+Kf/fLEjBYPktT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T YIox/dU8oXSIkG38AFVdzg3lhXQqscYPwkncKKUbB2q0RuKVNowBnofJdnblp+hNhdepT4cv1/e/ qg/iDM/eardOGaoWppXz/StZt8moBMbgU4UwiNTobVnV6bkIrh01E1cV3bdovk1ZlQILvcf8x0BV 6vAom9MxXoFSVWX0KxIKsHxka4mjGpQZWTXnKj199o/ia8KiiEGNbHSvlARsUckqwt+qsig+32yI oVhOV0ngDf0BkETB6mNVwUAYePBQHXoziCZh5nO2Udk7OLON6hR14idQORtH55JKxdE5RhSQSLwJ B7ERo/CAicBLsjNoKWWq31Yzp9jAMHywGL/ysGaMfostliRONpmHHKS+/SYgNt/YZlXVkYZ+a4ey 1fgk1CYzfmNsNGJllrQw5EvEfxCWyTgO9YZ+eC9mXuqI2Z86xuq//4V//ut5Pf+zu7vXxf9fo9X+ /teVJ2a9Tcy64N8xwe+E6U7/ORis4lmiMOwHE/CTFr/s9QSXbBizKM4iuDS3SZDwqReE5p6nKX5w 3OvpP2byD7ANPpnFbAPLbffZt/+xkT+5DiQd0QUSnv/32U8HH913R+fu4Yf374/OqRCa4KwqZfv0 d2EwtsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P6ed2mMAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"