#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=5d869c2a35a6b66311ec39f98738541e0243e7be 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 H4sIALcLo2YAA+08bXPbxtH5zF9xleIB6JAgJUu2hw3tKvJL1NqSxlKaZvQoGAg4irBAAMWLJLaT /Pbu7t0BOAAk5SZ2n2lxMxZJYG9vb99ud+/OS+cmHWWJE6azKFlY8fKr37+NoT3d28PPnWf7O/R7 59kz+oRve7v7T77a2Xu6P3463t9/9vSr8c7Ok6fjr9j4M9DSaHmaOQljX2Ko/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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0VR4efXB4qv1/Y9iQ0Tx7I1063RCvYVp1fs+a1m3zegKnMInLsIhUqW3VVWn56l/ bYmZ2OI/3WjRfJNOVZdY6D2efx6Im3o8zBdUxitRiltZfU1CPl4fG69wVIMqI3Vz1unps3+Wu0nl JSYxstK9yiWAFpXUEf6iy6LcvmuIoVxO10ngNR0AiwWsLKumDISBhQd96G0/dIPc42xLyx2s+ZY+ RXnAxxdnti15hKbynyMUGFFAaey4HMRGjMICE4FXZKfQ0pUJ+Va/OYENDMMDi/G0hzVj9FpssSJx sski5CD17TcBsXnKNnVVRxr6rR2qVuORUJvM+IWx0YhVWdLCkM8R/1H8r84HfqYEYEP8j61+/nv8 dL+L/79Eg7A8i6JAFnSG9+ncSax0/ruOsf78Px7/f1rf/9vb3+3k/yVa7fz/lZPOe9u464bnGPGc AP2Sx0HxsMkKhWHfqoSPvNiLXi/lGRtGLIzyEL6qn7Ef85njB+o3TxI8cNDrycOM/wTfyN15xLbw 1OyEff2nreLJtZ9RidbP4Pnfzr4/+GC/PTq3D0/evz86p2PtBGfolE3oXCjmVjid1JBgCD6DsEns XLAhHWGZKSQrcXmwfBq9X3q9LaTsPy29rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17r2v9j+BZQer88AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"