#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=acab876e0cdd4b20f2f0b8c0cd1829645a97e146 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 H4sIAODQmWYAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798Xui2fPt3Z2X3yztb39bHv3G7b1BWhptExIL2Xsawz1/7Ft/mWUiXR0FUQj Ht2yZCFncbTT29jY6JW1gg3Zex7x1JOcHXz3HZum8Zz9AgDs8KPT6/0suGAI73jCDx3GPgVhyOQs EOyKs5TfpYGUPGKeglJY8eo1jUTYXHeaySzlrsuCeRKnkiVpEEl4Gk1kEEe9nn4sFqKnu/j89ioL Qt+5BuT6NQ2AZCgYvDKvpnE69yRSMZ1L9XoSp9y85mkap+qx70nPDb3o2rz7/L16MV9MksQ8nC/C 4Eo9x1HNY5l6kcCxmq+AThcQaPrlIgmKIY4CIYkdPp+ykwTnLOz+Xo9B20RYvsfsPhu+YnEiEy8V 3FFQp3idEtzGRw48jATzIoSCl4wgUxZEoOjRhDsbPYJM2Lgdj91X7x3P912Fw7aGwygeJimXcjEk sQznHDTFF9aAoCvN50KOLQXtKiGugPZIumNLSBCFO/VCwduRTr0slOPzNOMtr2c8TMbWpxmMA5OV MXJaqauiQykTctuQ0u9pzh7EkUzjkJ2S7oNGAKfSbALkCAMCwmSzKPY56Xcrf5LFMIgCOTxewZGF iyButJ4NQMBKLrxDNi1lQ26qekquGtcFiwT1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IkG38AFVdzg3lhXQqscYPwkncKKUbB2q0RuKVNowBnofJdnblp+hNhdepT4cv1/e/ qg/iDM/eabdOGaoWppXz/StZt8moBMbgU4UwiNTobVnV6bkIrh01E1cV3bdovk1ZlQILvcf8x0BV 6vAom9MxXoFSVWX0KxIKsHxka4mjGpQZWTXnKj199o/ia8KiiEGNbHSvlARsUckqwt+qsig+32yI oVhOV0ngLf0BkETB6mNVwUAYePBQHXoziCZh5nO2Udk7OLON6hR14idQORtH55JKxdE5RhSQSLwJ B7ERo/CAicBLsjNoKWWq31Yzp9jAMHywGL/ysGaMfostliRONpmHHKS+/SYgNt/YZlXVkYZ+a4ey 1fgk1CYzfmNsNGJllrQw5EvEfxCWyTgO9YZ+eC9mXuqI2Z86xuq//4V//utFPf+zCz9d/P8VWu3v f115YtbbxKwL/h0T/E6Y7vSfg8EqniUKw34wAT9p8ateT3DJhjGL4iyCS3ObBAmfekFo7nma4gfH vZ7+Yyb/ANvgk1nMNrDcdo99+x8b+ZPrQNIRXSDh+X+f/bT/0X1/eO4enHz4cHhOhdAEZ1Up26O/ C4OxNU5HWBoMwaewbKqTazakT9inBslSXD64T6v3W6+3gZT9q6XXta51rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWtf+Hdv/AWsYiGMAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"