#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6b9e4a1bd58b2694ffbc61c1f821105d1b629738 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 H4sIALtWIGcAA+08a3PbRpL5zF8xK8UF0CFBPe2UNrRPkR/RnSypLGV9KZ2CAoGhCAsEcBhAEncr +e3X3TODN0lpE3uv7jBVNvHo6enp1/RMN7RwbsVoAf/Zc8cPrXjxzZ/ftqC93N/H3+2X+9t0v/3y Jf3C1dbW3stvtvdewsX+7vbOi2+2trd3t7a/YVtfgJZGy0TqJIx9jaH+N7bNv4wykYwmfjji4R2L F+ksCnd6GxsbvbJWsCF7z0OeOClnR999x6ZJNGe/AAA7/mj1ej8LLhjCW47wAouxT34QsHTmCzbh LOH3iZ+mPGSOhJJY8eo1jUTYbHuapVnCbZv58zhKUhYnfpjC09BN/Sjs9dRjsRA91cXjd5PMDzzr BpCr1zQAkiFh8Eq/mkbJ3EmRiuk8la/dKOH6NU+SKJGPPSd17MAJb/S7z9/LF/OFG8f64XwR+BP5 HEfVj9PECQWO1XwFdNqAQNGfLmK/GOLEFymxw+NTdhbjnIXZP+gxaJsIyw+Y2WfDVyyK09hJBLck 1DleJwS38ZEDD0PBnBCh4CUjyIT5ISh66HJro0eQMRu34zH78r3leJ4tcZjGcBhGwzjhaboYkliG cw6a4gljQNCV5nGRjg0JbUshroB2SLpjQ6QgCnvqBIK3I506WZCOL5OMt7ye8SAeG59mMA5MNo2Q 01JdJR1SmZDbmpR+T3H2KArTJArYOek+aARwKslcIEdoEBAmm4WRx0m/W/kTL4Z+6KfD0xUcWdgI Yofr2QAErOTCO2TTUjbkpqqmZMtxbbBIUP+E/3fm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EocydO8JipMgyna 9FfzhNIhIm3jB6jqcm5IL6RSiTV+EE7iRindOJCjNRKvtDH08TwsbWdXforeVHiV+rT4cn3/q/wg TvPsnXLrlKFqYVo537+SdZuMSmA0PlkIg0i13pZVnZ4L/8aSM7Fl0X2L5puUVSmw0HvMfwxkpQ4P szkd4xUoZVVGvyIhH8tHtpY4qkGZkVVzrtLTZ/8oviYsihjkyFr3SknAFpWsIvytKovi882GGIrl dJUE3tIfAIklrDpWFQyEgQcM1aE3/dANMo+zjcoewZptVKeoEj++zNlYKpdUKo7OMaKAROy4HMRG jMKDJAIvyU6jpZSpelvNnGIDw/DAYrzKw5oxei22WJI42WQecpD69puA2Dxtm1VVRxr6rR3KVuOR UJvM+I2x0YiVWdLCkC8R/0FYlkZRoDbuwwcxcxJLzP7UMVb//S/8818v6vmfvd3dLv7/Gq32978m jpj1NjHrgn/HBL8Tpjv152CwimeJwrAfdMBPWvyq1xM8ZcOIhVEWwqW+jf2YTx0/0Pc8SfCD415P /TGTf4BtcHcWsQ0stz1g3/7bRv7kxk/pKM5P4fl/Xvx0+NF+f3xpH519+HB8SYXQBGdUKTugvwuD sTVORxgKDMGnsGzKE2o2pE/YpxrJUlweuE+j91uvt4GU/aul17Wuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/j+2/wHq2/WPAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"