#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=8aad6b6a4ee2370ad6986cb310501f66815fe538 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 H4sIAN+1lGYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt/d236283z32Tdb29vPtne+YVtfgJZGy4T0Usa+xlD/H9vmX0aZSEfXQTTi 0R1LFnIWRzu9jY2NXlkr2JC94xFPPcnZ4XffsWkaz9kvAMCOPji93s+CC4bwjif80GHsYxCGTM4C wa45S/l9GkjJI+YpKIUVr17RSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i8/vrrMg 9J0bQK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0ItuzLtP36sX88UkSczD+SIM rtVzHNU8lqkXCRyr+QrodAGBpl8ukqAY4jgQktjh8yk7TXDOwu7v9xi0TYTl+8zus+FLFicy8VLB HQV1htcpwW184MDDSDAvQih4yQgyZUEEih5NuLPRI8iEjdvx2H313vF831U4bGs4jOJhknIpF0MS y3DOQVN8YQ0IutJ8LuTYUtCuEuIKaI+kO7aEBFG4Uy8UvB3p1MtCOb5IM97yesbDZGx9nME4MFkZ I6eVuio6lDIhtw0p/Z7m7GEcyTQO2RnpPmgEcCrNJkCOMCAgTDaLYp+TfrfyJ1kMgyiQw5MVHFm4 COJG69kABKzkwltk01I25Kaqp+SqcV2wSFD/lP9vFqRgsPyOpws2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ofJdnblp+hNhdepT4cv1/e/ qg/iDM/eardOGaoWppXz/StZt8moBMbgU4UwiNTobVnV6bkIbhw1E1cV3bdovk1ZlQILvcf8x0BV 6vAom9MxXoFSVWX0KxIKsHxka4mjGpQZWTXnKj199o/ia8KiiEGNbHSvlARsUckqwt+qsig+32yI oVhOV0ngDf0BkETB6mNVwUAYePBQHXoziCZh5nO2Udk7OLON6hR14idQORtH55JKxdE5RhSQSLwJ B7ERo/CAicBLsjNoKWWq31Yzp9jAMHywGL/ysGaMfostliRONpmHHKS+/SYgNt/YZlXVkYZ+a4ey 1fgk1CYzfmNsNGJllrQw5EvEfxCWyTgO9YZ++CBmXuqI2Z86xuq//4V//ut5Pf+zC9uFLv7/Cq32 97+uPTHrbWLWBf+OCX4nTHf6z8FgFc8ShWE/mICftPhlrye4ZMOYRXEWwaW5TYKET70gNPc8TfGD 415P/zGTf4Bt8MksZhtYbrvPvv2PjfzJTSDpiC6Q8Py/z386+OC+O7pwD0/fvz+6oEJogrOqlO3T 34XB2BqnIywNhuBTWDbVyTUb0ifsU4NkKS4f3KfV+63X20DK/tXS61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/47t/wDCKoDMAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"