#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=871e0876223ae4f94e116da6c31d7b7c933054e8 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 H4sIAGNQe2cAA+08aXPbRrL5zF8xK8UF0CFBXbZT2tBeRT6iXVtWWcp6U3oKCiKGIiwQwOKQxN1K fvt29xwYHCSlje33qh6myiY56Onp6Wt6phtaeNfZaAH/uXMviJxk8c3nb1vQnj15gp/bz55s0++d rS36xEfPtp5+s733bPfp0yf4+5ut7e2dZ0+/YVtfgJZGK7LcSxn7GlP9X2ybfxoVWTq6DKIRj25Y sshncbTT29jY6JlawYbsDY946uWcHX73HZum8Zz9AgDs6IPT6/2c8YwhvONlfugw9jEIQ5bPgoxd cpby2zTIcx4xT0AJrPjtBc1E2Fx3WuRFyl2XBfMkTnOWpEGUQ280yYM46vVkd7bIenKIz28uiyD0 nStALh/TBEiGgMFv6tE0TudejlRM57l4PIlTrh7zNI1T0e17ueeGXnSlnn36XjyYLyZJojrnizC4 FP04q+rOUy/KcK7mI6DTBQSS/nyRBOUUb4MsJ3b4fMreJ7jmzO7v9xi0TYTl+8zus+FzFid54qUZ dwTUCX5PCW7jAwceRhnzIoSCh4wgUxZEoOjRhDsbPYJM2Lgdj90Xzx3P912Bw7aGwygeJinP88WQ xDKcc9AUP7MGBF1pPs/ysSWgXSHEFdAeSXdsZTmIwp16YcbbkU69IszHZ2nBWx7PeJiMrY8zmAcW m8fIaaGugg6hTMhtRUq/Jzl7GEd5GofshHQfNAI4lRYTICdTICBMNotin5N+t/InWQyDKMiHxys4 snARxI3WswEIWMmF18impWzQpiqX5Ip5XbBIUP+U/7MIUjBYfsPTBZsGPPRL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s4ufYHeVHiZ9XT4 cn3/s3jZSvHstfTolJxqYZqZ6l/Juk1G1S8Kn6iBQaRKb01Vp/4suHLESlxRb9+i+TYlVEos9BxT HwNRpMOjYk43eCVKUZDRr0gowMqRrSWOamAysmrOVXr67N/lm2pl/YKYWemekf9rUckqwt+qsihf +WuIodxJV0ngFf3th0TAyhvVjIEw8FBcnXoziCZh4XO2UYnJndlGdYky5xOIdI0j00hGXbTGiALK Em/CQWzEKLwIInBDdgotZUvl02rSFBsYhg8W41c6a8bot9iiIXGySR1tkPr2m4DYfGWbVVVHGvqt A0yr8UmoTWb8xthoxEyWtDDki8V/EJblcRzKI/PwLpt5qZPNPusca/7+09aezv/sPYOG+Z+9J937 f1+l1f7+06WXzXqbmHXBv2OBL6LSL/nnQLCKZ4nCsB9UwE+q/LzXy3jOhjGL4iKCr+pnEiR86gWh +s3TFN9o7fXkH7P4NxgIn8xitoHltvvs279s6J6rIKdLsCCH/n+c/nTwwX1zdOYevn/37uiMCqEJ zqpStk9/FwQDbFxOZkkwBJ/C3imumdmQ3n2eKiRLcfngQ63eb73eBlL2vy29rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79f2v/AeEpmI8AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"