#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=761a8ada858c214b955fdc833783e8c747398395 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 H4sIAF3sO2cAA+08a3PbRpL5zF8xK8UF0CFBSZatlDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37ag7b18ib/bey+36X57 b49+4Wpra3fvm+3dve1Xe69e7u1tfbO1vf1i59U3bOsL0NJomUidhLGvMdT/xrb5l1EmktHED0c8 vGPxIp1F4U5vY2OjV9YKNmQfeMgTJ+Xs8Lvv2DSJ5uwXAGBH51av97PggiG85QgvsBj75AcBS2e+ YBPOEn6f+GnKQ+ZIKIkVr97QSITNtqdZmiXctpk/j6MkZXHihyk8Dd3Uj8JeTz0WC9FTXTx+N8n8 wLNuALl6TQMgGRIGr/SraZTMnRSpmM5T+dqNEq5f8ySJEvnYc1LHDpzwRr/7/L18MV+4cawfzheB P5HPcVT9OE2cUOBYzVdApw0IFP3pIvaLIY59kRI7PD5lpzHOWZj9/R6DtomwfJ+ZfTZ8zaI4jZ1E cEtCneF1QnAb5xx4GArmhAgFLxlBJswPQdFDl1sbPYKM2bgdj9mX7y3H82yJwzSGwzAaxglP08WQ xDKcc9AUTxgDgq40j4t0bEhoWwpxBbRD0h0bIgVR2FMnELwd6dTJgnR8mWS85fWMB/HY+DSDcWCy aYScluoq6ZDKhNzWpPR7irOHUZgmUcDOSPdBI4BTSeYCOUKDgDDZLIw8Tvrdyp94MfRDPx2erODI wkYQO1zPBiBgJRfeI5uWsiE3VTUlW45rg0WC+if8vzM/AYPld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FpGz9AVZdzQ3ohlUqs8YNwEjdK6caBHK2ReKUdoI/nYWk7u/JT9KbCq9Sn xZfr+1/lB3GaZ++VW6cMVQvTyvn+lazbZFQCo/HJQhhEqvW2rOr0XPg3lpyJLYvuWzTfpKxKgYXe Y/5jICt1eJjN6RivQCmrMvoVCflYPrK1xFENyoysmnOVnj77R/E1YVHEIEfWuldKAraoZBXhb1VZ FJ9vNsRQLKerJPCO/gBILGHVsapgIAw8SagOvemHbpB5nG1UNgPWbKM6RZX48WXOxlK5pFJxdI4R BSRix+UgNmIUnhgReEl2Gi2lTNXbauYUGxiGBxbjVR7WjNFrscWSxMkm85CD1LffBMTmadusqjrS 0G/tULYaj4TaZMZvjI1GrMySFoZ8ifgPwrI0igK1Qx8+iJmTWGL2p46x+u9/4Z//elXP/+y+2uri /6/Ran//a+KIWW8Tsy74d0zwO2G6U38OBqt4ligM+0EH/KTFr3s9wVM2jFgYZSFc6tvYj/nU8QN9 z5MEPzju9dQfM/kH2AZ3ZxHbwHLbffbtv23kT278lM7c/BSe/+fFTwfn9oejS/vw9OPHo0sqhCY4 o0rZPv1dGIytcTrCUGAIPoVlUx5FsyF9wj7VSJbi8sB9Gr3fer0NpOxfLb2uda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuvb/sf0PI0n2MQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"