#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b491e104a0556bf6fc7fd28994fb726009cc4831 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 H4sIALultWYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r2oxVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdrbw9/tV3vbdL/9 6hX9wtXW1u6rb7Z3X+7tvdjZ2cPn29tw9Q3b+gK0NFomUidh7GsM9f+xbf5llIlkNPHDEQ/vWLxI Z1G409vY2OiVtYIN2Qce8sRJOTv87js2TaI5+wUA2NG51ev9LLhgCG85wgssxj75QcDSmS/YhLOE 3yd+mvKQORJKYsWrNzQSYbPtaZZmCbdt5s/jKElZnPhhCk9DN/WjsNdTj8VC9FQXj99NMj/wrBtA rl7TAEiGhMEr/WoaJXMnRSqm81S+dqOE69c8SaJEPvac1LEDJ7zR7z5/L1/MF24c64fzReBP5HMc VT9OEycUOFbzFdBpAwJFf7qI/WKIY1+kxA6PT9lpjHMWZn+/x6BtIizfZ2afDV+zKE5jJxHcklBn eJ0Q3MY5Bx6GgjkhQsFLRpAJ80NQ9NDl1kaPIGM2bsdj9uV7y/E8W+IwjeEwjIZxwtN0MSSxDOcc NMUTxoCgK83jIh0bEtqWQlwB7ZB0x4ZIQRT21AkEb0c6dbIgHV8mGW95PeNBPDY+zWAcmGwaIael uko6pDIhtzUp/Z7i7GEUpkkUsDPSfdAI4FSSuUCO0CAgTDYLI4+TfrfyJ14M/dBPhycrOLKwEcQO 17MBCFjJhffIpqVsyE1VTcmW49pgkaD+Cf/f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UDqZPn9p4qixJE8zW+iwjSYok1/NU8oHSbSNn6A qi7nhvRCKpVc4wfhJG6U0s0DOVoj8U4bRh/Pw9J2duVZlKbCq9S3xZfr+1/lB3GaZ++VW6cMZQvT yvUeK1m3yagESuOThVCIVOttWdXpufBvLDkTW3500aL5JmXVCiz0HvNfA1mpxcNsTsd4BUpZldOv SMjH8qGtJY5qUGZk1Zyr9PTZP4qvCYsiFjmy1r1SErhFJasIf6vKovh8syGGYjldJYF39AdAYgmr jlUFA2HgwUN16E0/dIPM42yjsnewZhvVKarEny9zdpbKJZaK43OMKCAROy4HsRGj8ICJwEuy02gp Za7eVjPn2MAwPLAYr/KwZoxeiy2WJE42mYccpL79JiA2T9tmVdWRhn5rh7LVeCTUJjN+Y2w0YmWW tDDkS8R/EJalURSoDf3wQcycxBKzP3WM1X//C//818t6/mcXtgRd/P8VWu3vf00cMettYtYF/44J fidMd+rPwWAV1xKFYT/ogJ+0+HWvJ3jKhhELoyyES30b+zGfOn6g73mS4AfHvZ76Yyb/ANvg7ixi G1huvc++/Y+N/MmNn9IRnZ/C8/+++Ong3P5wdGkfnn78eHRJhfAEZ1Qp26e/C4OxNU5HGAoMwaew bMqTazakT9inGslSXB64T6P3W6+3gZT9q6XXta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWtf+Hdv/AYit4uEAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"