#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6958fd15e9531cf1fc1dc0350193d322915cfa7a 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 H4sIAKEPo2YAA+08bXPbxtH5zF9xleIB6JAgJUu2hw3tKvJL1NqSxlKaZvQoGAg4irBAAMWLJLaT /Pbu7t0BOAAk5SZ2n2lxMxZJYG9vb99ud+/OS+cmHWWJE6azKFlY8fKr37+NoT3d28PPnWf7O/R7 59kz+oRve7v7T77a2Xu6P346fra/t//VeGfnyf7Tr9j4M9DSaHmaOQljX2Ko/49ta2urVxU/G7Is T0I2jxbRNQ95lKcs9IPnlpN6AUt4nPCUh5kfhcwPs4jNecYTBdlbgjbVIB2E7eEwsyRaMNue5TAA t23mL+IoyVicACJ4GroEKcE8fnuV+4FnAWoLCbAJrewT3jpBzgfy0y6/ZW3dkSqtu/k+8vIAep0C 6YmzGLBF5EGfWfHFzgY99pB2ky1jQEQf0Iml2UL+xV83/D5OHozrKIQu59ENDwfszL8OHWTUgB07 C34O6PuSN4ulG8fWYhn4V2pCQXQ9YJlznd75mTuXcECSH14rENdJAfs7P816PZtNsUuv14Opsvdg At/xs+XiKgpM5GN/QvRuIwY+YabibZ8NX8DUEnrrz4jnFoxq9tkfpoUsLIFpUsw5cfyUs4M05QlK +HWSRIlpvL6PuZtxjwnwAbuOMvYoNdgjwtSn7gknZUTaJRWWAicgK9XmgLPbPAOEulBPLjdMBoEf PBUEfvBEBLCYhp/xhZrKubJGQJtsno1UsR6B/HBq40smJkCPQCPmpWoIfMxJkRReTgwYgA/MYt6g i/2JprYScXUKpLByzL4GHEQuwJIum0bsZHNjwAx3noc38GU8YE/6OJ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J49ka6dTqh3sK06n2ftazbZnQFTuETF+EQqdLbqqrT89S/ tsRMbPGfbrRovkmnqkss9B7PPw/ETT0e5gsq45Uoxa2sviYhH6+PjVc4qkGVkbo56/T02T/L3aTy EpMYWele5RJAi0rqCH/RZVFu3zXEUC6n6yTwmg6AxQJWllVTBsLAwoM+9LYfukHucbal5Q7WfEuf ojzg44sz25Y8QlP5zxEKjCigNHZcDmIjRmGBicArslNo6cqEfKvfnMAGhuGBxXjaw5oxei22WJE4 2WQRcpD69puA2Dxlm7qqIw391g5Vq/FIqE1m/MLYaMSqLGlhyOeI/yj+V+cDP1MCsCH+x1Y//z1+ +qSL/79Eg7A8i6JAFnSG9+ncSax0/ruOsf78Px7/f1rf/9vbH3fy/xKtdv7/yknnvW3cdcNzjHhO gH7J46B42GSFwrBvVcJHXuxFr5fyjA0jFkZ5CF/Vz9iP+czxA/WbJwkeOOj15GHGf4Jv5O48Ylt4 anbCvv7TVvHk2s+oROtn8PxvZ98ffLDfHp3bhyfv3x+d07F2gjN0yiZ0LhRzK5xOakgwBJ9B2CR2 LtiQjrDMFJKVuDxYPo3eL73eFlL2n5Ze17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta137X2z/Ar3Z8CcAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"