#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=12d948131c4acc398b8f1ebf90be1d27e541014b 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 H4sIAMlVGWcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799XWy529nb0X0L+9/WJ77xu29QVoabRMpE7C2NeY6n9j2/zLKBPJaOKHIx7e sXiRzqJwp7exsdErawUbsg885ImTcnb43XdsmkRz9gsAsKNzq9f7WXDBEN5yhBdYjH3yg4ClM1+w CWcJv0/8NOUhcySUxIrf3tBMhM22p1maJdy2mT+PoyRlceKHKfSGbupHYa+nusVC9NQQj99NMj/w rBtArh7TBEiGhMFv+tE0SuZOilRM56l87EYJ1495kkSJ7Pac1LEDJ7zRzz5/Lx/MF24c6875IvAn sh9n1d1p4oQC52o+AjptQKDoTxexX0xx7IuU2OHxKTuNcc3C7O/3GLRNhOX7zOyz4WsWxWnsJIJb EuoMvycEt3HOgYehYE6IUPCQEWTC/BAUPXS5tdEjyJiN2/GYffnccjzPljhMYzgMo2Gc8DRdDEks wzkHTfGEMSDoSvO4SMeGhLalEFdAOyTdsSFSEIU9dQLB25FOnSxIx5dJxlsez3gQj41PM5gHFptG yGmprpIOqUzIbU1Kv6c4exiFaRIF7Ix0HzQCOJVkLpAjNAgIk83CyOOk3638iRdDP/TT4ckKjixs BLHD9WwAAlZy4T2yaSkbclNVS7LlvDZYJKh/wv878xMwWH7HkwWb+jzwCm5cz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XfktelPhVerT4sv1/a/yhTjN s/fKrVOGqoVp5Xz/StZtMiqB0fhkIQwi1XpbVnXqF/6NJVdiy6L7Fs03KatSYKHnmP8YyEodHmZz usYrUMqqjH5FQj6Wj2wtcVSDMiOr5lylp8/+UbxNWBQxyJm17pWSgC0qWUX4W1UWxeubDTEU2+kq CbyjPwASS1h1rSoYCAMvGKpTb/qhG2QeZxuVM4I126guUSV+fJmzsVQuqVQcnWNEAYnYcTmIjRiF F0kEXpKdRkspU/W0mjnFBobhgcV4lc6aMXottliSONlkHnKQ+vabgNg8bZtVVUca+q0DylbjkVCb zPiNsdGIlVnSwpAvEf9BWJZGUaAO7sMHMXMSS8z+1DlW//0v/PNfL+v5n93dV138/zVa7e9/TRwx 621i1gX/jgm+J0y/1J+DwSqeJQrDftABP2nx615P8JQNIxZGWQhf9c/Yj/nU8QP9mycJvnDc66k/ ZvIPsA3uziK2geW2++zbf9vIe278lK7i/BT6//Pip4Nz+8PRpX14+vHj0SUVQhOcUaVsn/4uDMbW uBxhKDAEn8K2KW+o2ZBeYZ9qJEtxeeA+jd5vvd4GUvavll7Xuta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXfv/2P4HaZOe9gB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"