#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d9260baa231ff2de1d9a58e15f74d505c722c82f 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 H4sIAG7flWYAA+08a3PbRpL5zF8xK8UF0CFBSZbllDa0T5Ef0Z0tqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/H8Of5uv3i+Tffb L17QL1xtbe2++GZ7d2/3+bPnL3b3dr7Z2t5+trPzDdv6ArQ0WiaklzL2NYb6/9g2/zLKRDq6CqIR j25ZspCzONrpbWxs9MpawYbsHY946knODr/7jk3TeM5+AQB29NHp9X4WXDCEdzzhhw5jn4IwZHIW CHbFWcrv0kBKHjFPQSmsePWKRiJsrjvNZJZy12XBPIlTyZI0iCQ8jSYyiKNeTz8WC9HTXXx+e5UF oe9cA3L9mgZAMhQMXplX0zidexKpmM6lej2JU25e8zSNU/XY96Tnhl50bd59/l69mC8mSWIezhdh cKWe46jmsUy9SOBYzVdApwsINP1ykQTFEO8DIYkdPp+ykwTnLOz+fo9B20RYvs/sPhu+ZHEiEy8V 3FFQp3idEtzGRw48jATzIoSCl4wgUxZEoOjRhDsbPYJM2Lgdj91X7x3P912Fw7aGwygeJimXcjEk sQznHDTFF9aAoCvN50KOLQXtKiGugPZIumNLSBCFO/VCwduRTr0slOPzNOMtr2c8TMbWpxmMA5OV MXJaqauiQykTctuQ0u9pzh7GkUzjkJ2S7oNGAKfSbALkCAMCwmSzKPY56Xcrf5LFMIgCOTxewZGF iyButJ4NQMBKLrxFNi1lQ26qekquGtcFiwT1T/n/ZkEKBstvebpg04C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qgw DaYY01/NE0qHCNnGD1DV5dxQXkinEmv8IJzEjVK6caBGayReacMY4HmYbGdXforeVHid+nT4cn3/ q/ogzvDsrXbrlKFqYVo537+SdZuMSmAMPlUIg0iN3pZVnZ6L4NpRM3FV0X2L5tuUVSmw0HvMfwxU pQ6Psjkd4xUoVVVGvyKhAMtHtpY4qkGZkVVzrtLTZ/8oviYsihjUyEb3SknAFpWsIvytKovi882G GIrldJUE3tAfAEkUrD5WFQyEgQcP1aE3g2gSZj5nG5W9gzPbqE5RJ34ClbNxdC6pVBydY0QBicSb cBAbMQoPmAi8JDuDllKm+m01c4oNDMMHi/ErD2vG6LfYYkniZJN5yEHq228CYvONbVZVHWnot3Yo W41PQm0y4zfGRiNWZkkLQ75E/AdhmYzjUG/oh/di5qWOmP2pY6z++1/457/26vmfXdgSdPH/V2i1 v/915YlZbxOzLvh3TPA7YbrTfw4Gq3iWKAz7wQT8pMUvez3BJRvGLIqzCC7NbRIkfOoFobnnaYof HPd6+o+Z/ANsg09mMdvActt99u1/bORPrgNJR3SBhOf/ffbTwUf33dG5e3jy4cPRORVCE5xVpWyf /i4MxtY4HWFpMASfwrKpTq7ZkD5hnxokS3H54D6t3m+93gZS9q+WXte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd+3ds/wcWj4IgAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"