#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0d0210092d901702c8ce147089d2b93209dabe4c 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 H4sIACNRl2YAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt/de7639Qzfb28/2372Ddv6ArQ0WiaklzL2NYb6/9g2/zLKRDq6DqIRj+5Y spCzONrpbWxs9MpawYbsHY946knODr/7jk3TeM5+AQB29MHp9X4WXDCEdzzhhw5jH4MwZHIWCHbN Wcrv00BKHjFPQSmsePWKRiJsrjvNZJZy12XBPIlTyZI0iCQ8jSYyiKNeTz8WC9HTXXx+d50Foe/c AHL9mgZAMhQMXplX0zidexKpmM6lej2JU25e8zSNU/XY96Tnhl50Y959+l69mC8mSWIezhdhcK2e 46jmsUy9SOBYzVdApwsINP1ykQTFEMeBkMQOn0/ZaYJzFnZ/v8egbSIs32d2nw1fsjiRiZcK7iio M7xOCW7jAwceRoJ5EULBS0aQKQsiUPRowp2NHkEmbNyOx+6r947n+67CYVvDYRQPk5RLuRiSWIZz DpriC2tA0JXmcyHHloJ2lRBXQHsk3bElJIjCnXqh4O1Ip14WyvFFmvGW1zMeJmPr4wzGgcnKGDmt 1FXRoZQJuW1I6fc0Zw/jSKZxyM5I90EjgFNpNgFyhAEBYbJZFPuc9LuVP8liGESBHJ6s4MjCRRA3 Ws8GIGAlF94im5ayITdVPSVXjeuCRYL6p/x/syAFg+V3PF2wacBDv+D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aYY 01/NE0qHCNnGD1DV5dxQXkinEmv8IJzEjVK6caBGayReacMY4HmYbGdXforeVHid+nT4cn3/q/og zvDsrXbrlKFqYVo537+SdZuMSmAMPlUIg0iN3pZVnZ6L4MZRM3FV0X2L5tuUVSmw0HvMfwxUpQ6P sjkd4xUoVVVGvyKhAMtHtpY4qkGZkVVzrtLTZ/8oviYsihjUyEb3SknAFpWsIvytKovi882GGIrl dJUE3tAfAEkUrD5WFQyEgQcP1aE3g2gSZj5nG5W9gzPbqE5RJ34ClbNxdC6pVBydY0QBicSbcBAb MQoPmAi8JDuDllKm+m01c4oNDMMHi/ErD2vG6LfYYkniZJN5yEHq228CYvONbVZVHWnot3YoW41P Qm0y4zfGRiNWZkkLQ75E/AdhmYzjUG/ohw9i5qWOmP2pY6z++1/457+e1/M/u7t7Xfz/NVrt739d e2LW28SsC/4dE/xOmO70n4PBKp4lCsN+MAE/afHLXk9wyYYxi+IsgktzmwQJn3pBaO55muIHx72e /mMm/wDb4JNZzDaw3HafffsfG/mTm0DSEV0g4fl/n/908MF9d3ThHp6+f390QYXQBGdVKdunvwuD sTVOR1gaDMGnsGyqk2s2pE/YpwbJUlw+uE+r91uvt4GU/aul17Wuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/h3b/wGahteMAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"