#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3b244f9b9f0002c6860ad329d63e36514e9f2205 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 H4sIAFXTm2YAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798XuC3i5+wzeb28/237+Ddv6ArQ0WiaklzL2NYb6/9g2/zLKRDq6CqIRj25Z spCzONrpbWxs9MpawYbsPY946knODr77jk3TeM5+AQB2+NHp9X4WXDCEdzzhhw5jn4IwZHIWCHbF Wcrv0kBKHjFPQSmsePWaRiJsrjvNZJZy12XBPIlTyZI0iCQ8jSYyiKNeTz8WC9HTXXx+e5UFoe9c A3L9mgZAMhQMXplX0zidexKpmM6lej2JU25e8zSNU/XY96Tnhl50bd59/l69mC8mSWIezhdhcKWe 46jmsUy9SOBYzVdApwsINP1ykQTFEEeBkMQOn0/ZSYJzFnZ/r8egbSIs32N2nw1fsTiRiZcK7iio U7xOCW7jIwceRoJ5EULBS0aQKQsiUPRowp2NHkEmbNyOx+6r947n+67CYVvDYRQPk5RLuRiSWIZz DpriC2tA0JXmcyHHloJ2lRBXQHsk3bElJIjCnXqh4O1Ip14WyvF5mvGW1zMeJmPr0wzGgcnKGDmt 1FXRoZQJuW1I6fc0Zw/iSKZxyE5J90EjgFNpNgFyhAEBYbJZFPuc9LuVP8liGESBHB6v4MjCRRA3 Ws8GIGAlF94hm5ayITdVPSVXjeuCRYL6p/x/syAFg+W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