#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=82888d3dee4b027142a17c043102859d592ba071 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 H4sIAK8AdGcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJUwTYfvYN/LfzfOcbtvUFaGm0XGReytjXmOr/Ytv80ygX6egqiEY8umXJ IpvF0U5vY2OjZ2oFG7K3POKpl3F28N13bJrGc/YLALDDU6fX+1lwwRDe8YQfOox9CMKQZbNAsCvO Un6XBlnGI+ZJKIkVv72kmQib607zLE+567JgnsRpxpI0iDLojSZZEEe9nuoWC9FTQ3x+e5UHoe9c A3L1mCZAMiQMftOPpnE69zKkYjrP5ONJnHL9mKdpnMpu38s8N/Sia/3s4/fywXwxSRLdOV+EwZXs x1l1d5Z6kcC5mo+AThcQKPqzRRKUUxwFIiN2+HzK3ie4ZmH393oM2ibC8j1m99nwBYuTLPFSwR0J dYLfU4LbOOXAw0gwL0IoeMgIMmVBBIoeTbiz0SPIhI3b8dh9+dzxfN+VOGxrOIziYZLyLFsMSSzD OQdN8YU1IOhK87nIxpaEdqUQV0B7JN2xJTIQhTv1QsHbkU69PMzG52nOWx7PeJiMrQ8zmAcWm8XI aamukg6pTMhtTUq/pzh7EEdZGofshHQfNAI4leYTIEdoEBAmm0Wxz0m/W/mTLIZBFGTD4xUcWbgI 4kbr2QAErOTCG2TTUjYUpqqW5Mp5XbBIUP+U/zMPUjBYfsv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KItb4QTiJG0amcSBna+Rc6TAT4FVY1s6u4gK9qfAq6+nw 5fr+Z/mylebZG+XRKTnVwjQz1b+SdZuMql80PlkDg0i13pqqTv0iuHbkSlxZb9+i+TYlVEos9BxT HwNZpMOjfE43eCVKWZDRr0gowMqRrSWOamAysmrOVXr67N/lm2pl/YKcWeuekf9rUckqwt+qsihf +WuIodxJV0ngNf3th0TCqhtVwUAYeCiuTr0ZRJMw9znbqMTkzmyjukSV8wlkusZRaSSjLrrAiAIS iTfhIDZiFF4EEbghO42WsqXqaTVpig0MwweL8SudNWP0W2zRkDjZZBFtkPr2m4DYfG2bVVVHGvqt A0yr8UmoTWb8xthoxEyWtDDki8V/EJZlcRyqI/PwXsy81BGzzzrHmr//tLVbyf88xfzP7vaTLv7/ Gq3295+uPDHrbWLWBf+OBb6ISr/UnwPBKp4lCsN+0AE/qfKLXk/wjA1jFsV5BF/1zyRI+NQLQv2b pym+0drrqT9m8W8wED6ZxWwDy2332Ld/2Sh6roOMLsGCDPr/cfbT/qn79vDcPXj/7t3hORVCE5xV pWyP/i4IBti4HGEpMASfwt4pr5nZkN59nmokS3H54EOt3m+93gZS9r8tva51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWu/X9r/wE5ijNaAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"