#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b930437877426935fe79dd0414fb7cbc1a14d768 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 H4sIAGcRl2YAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798Xu8xfbW7sIt739bHv3G7b1BWhptExIL2Xsawz1/7Ft/mWUiXR0FUQjHt2y ZCFncbTT29jY6JW1gg3Zex7x1JOcHXz3HZum8Zz9AgDs8KPT6/0suGAI73jCDx3GPgVhyOQsEOyK s5TfpYGUPGKeglJY8eo1jUTYXHeaySzlrsuCeRKnkiVpEEl4Gk1kEEe9nn4sFqKnu/j89ioLQt+5 BuT6NQ2AZCgYvDKvpnE69yRSMZ1L9XoSp9y85mkap+qx70nPDb3o2rz7/L16MV9MksQ8nC/C4Eo9 x1HNY5l6kcCxmq+AThcQaPrlIgmKIY4CIYkdPp+ykwTnLOz+Xo9B20RYvsfsPhu+YnEiEy8V3FFQ p3idEtzGRw48jATzIoSCl4wgUxZEoOjRhDsbPYJM2Lgdj91X7x3P912Fw7aGwygeJimXcjEksQzn HDTFF9aAoCvN50KOLQXtKiGugPZIumNLSBCFO/VCwduRTr0slOPzNOMtr2c8TMbWpxmMA5OVMXJa qauiQykTctuQ0u9pzh7EkUzjkJ2S7oNGAKfSbALkCAMCwmSzKPY56Xcrf5LFMIgCOTxewZGFiyBu tJ4NQMBKLrxDNi1lQ26qekquGtcFiwT1T/n/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SIkG38AFVdzg3lhXQqscYPwkncKKUbB2q0RuKVNowBnofJdnblp+hNhdepT4cv1/e/qg/i DM/eabdOGaoWppXz/StZt8moBMbgU4UwiNTobVnV6bkIrh01E1cV3bdovk1ZlQILvcf8x0BV6vAo m9MxXoFSVWX0KxIKsHxka4mjGpQZWTXnKj199o/ia8KiiEGNbHSvlARsUckqwt+qsig+32yIoVhO V0ngLf0BkETB6mNVwUAYePBQHXoziCZh5nO2Udk7OLON6hR14idQORtH55JKxdE5RhSQSLwJB7ER o/CAicBLsjNoKWWq31Yzp9jAMHywGL/ysGaMfostliRONpmHHKS+/SYgNt/YZlXVkYZ+a4ey1fgk 1CYzfmNsNGJllrQw5EvEfxCWyTgO9YZ+eC9mXuqI2Z86xuq//4V//utFPf+zu/uii/+/Rqv9/a8r T8x6m5h1wb9jgt8J053+czBYxbNEYdgPJuAnLX7V6wku2TBmUZxFcGlukyDhUy8IzT1PU/zguNfT f8zkH2AbfDKL2QaW2+6xb/9jI39yHUg6ogskPP/vs5/2P7rvD8/dg5MPHw7PqRCa4KwqZXv0d2Ew tsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P/dKaQQAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"