#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=12f9721f76098230f4271f23cfcab31fe29cf8b5 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 H4sIAAgjo2YAA+08/XPbNrL9WX8Fzm6GVCtRsuM0HV2VPNf5qO8SxxO719fxczk0CVmMKZKPoGzr btq//e0uAJIgKcm5Nrk3d8RMLIlcLBb7hd0FkJV3I0Z55sVilmQLJ1198ce3MbRvDg7wc+/pkz36 vff0KX3Ct4P9J4+/2Dv45sn4m/29x3tPvhjv7T0+ePIFG38CWhptKXIvY+xzDPX/se3s7PSq4mdD li+zmM2TRXLNY54sBYvD6FvHE0HEMp5mXPA4D5OYhXGesDnPeaYheyvQphqkh7A9HGaWJQvmurMl DMBdl4WLNMlylmaACJ7GPkEqsIDfXi3DKHAAtYMEuIRW9YlvvWjJB+rTLb/lbd2RKqO7/TYJlhH0 OgXSM28xYIskgD6z4oubD3rsIe0mX6WAiD6gExP5Qv3FXzf8Ps0ejOs4hi7nyQ2PB+wsvI49ZNSA nXgLfg7o+4o3i5Wfps5iFYVXekJRcj1guXct7sLcnys4ICmMrzWI7wnA/iYUea/nsil26fV6MFX2 Fkzge362WlwlkY187E+I3l3EwCfM1rzts+EzmFpGb8MZ8dyBUe0++9O0kIUjMU2KOWdeKDg7FIJn KOGXWZZktvXyPuV+zgMmwQfsOsnZI2GxR4SpT90zTsqItCsqHA1OQI4w5oCz2z4DhLrQTy63TAaB HzwVBH7wRCSwnEaY84Weyrm2RkCbbZ+NUrEegfx46uJLJidAj0Aj5qVqSHzME0gKLycGDMAHdjFv 0MX+xFBbhbg6BVJYNWbfAI4SH2BJl20r9fK5NWCWP1/GN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ORdbuMrsBpfPIiHCLVeltVdXouwmtH zsSV/+lGi+bbdKq6xELv8fzzQN7U4/FyQWW8EqW8ldU3JBTi9bHxGkc1qDLSNGeTnj77R7mbVF5i kiNr3atcAmhRSRPhr6Ysyu27hhjK5XSTBF7SAbBUwqqyqmAgDCw8mEPvhrEfLQPOdozcwZnvmFNU B3xCeWbbUUdoKv85QoERBSRSz+cgNmIUFpgIvCI7jZauTKi35s0JbGAYAVhMYDysGWPQYosViZNN FiEHqW+/CYgt0LZpqjrS0G/tULWagITaZMavjI1GrMqSFoZ8iviP4n99PvATJQBb4n9s9fPf4yf7 Xfz/ORqE5XmSRKqgM7wXcy9zxPwPHWPz+X88/v9Nff/v4PHTTv6fo9XO/195Yt7bxV03PMeI5wTo lzoOiodN1igM+04nfOTFnvV6gudsmLA4WcbwVf9Mw5TPvDDSv3mW4YGDXk8dZvwH+EbuzxO2g6dm J+zL/9opnlyHOZVowxye//fZD4fv3dfH5+7Ru7dvj8/pWDvBWSZlEzoXirkVTkdYCgzBZxA2yZ0L NqQjLDONZC2uAJZPq/drr7eDlP2rpde1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta1/4T2/8BT/tFSgB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"