#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=52bebf897efc4ba28537e45316034c758cf2f888 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 H4sIAHHCJmcAA+08/XPbtpL9WX8Fnt0MqVSiLMdOOn5Vcq7zUd85tsd2X67jczk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mp3Fz/Hr3bH9Hv8 6hV9wretrZ1X34x3Xo3HuzvjrfHON1vj8YutrW/Y1hegpdEykToJY19jqv+NbfMvo0wko2s/HPHw jsWLdBaF272NjY1eWSvYkH3gIU+clLOD775j0ySas18AgB2eWb3ez4ILhvCWI7zAYuyTHwQsnfmC XXOW8PvET1MeMkdCSaz47Q3NRNhse5qlWcJtm/nzOEpSFid+mEJv6KZ+FPZ6qlssRE8N8fjddeYH nnUDyNVjmgDJkDD4TT+aRsncSZGK6TyVj90o4foxT5Iokd2ekzp24IQ3+tnn7+WD+cKNY905XwT+ tezHWXV3mjihwLmaj4BOGxAo+tNF7BdTHPkiJXZ4fMpOYlyzMPt7PQZtE2H5HjP7bPiaRXEaO4ng loQ6xe8JwW2cceBhKJgTIhQ8ZASZMD8ERQ9dbm30CDJmk3Y8Zl8+txzPsyUO0xgOw2gYJzxNF0MS y3DOQVM8YQwIutI8LtKJIaFtKcQV0A5Jd2KIFERhT51A8HakUycL0slFkvGWxzMexBPj0wzmgcWm EXJaqqukQyoTcluT0u8pzh5EYZpEATsl3QeNAE4lmQvkCA0CwmSzMPI46Xcrf+LF0A/9dHi8giML G0HscD0bgICVXHiPbFrKhtxU1ZJsOa8NFgnqn/D/zvwE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oHSLSNn6Aqi7nhvRCKpVY4wfhJG6U0o0DOVsj8UoHQx/vw9J2duW36E2FV6lPiy/X97/K F+I0z94rt04ZqhamlfP9K1m3yagERuOThTCIVOttWdWpX/g3llyJLYvuWzTfpKxKgYWeY/5jICt1 eJjN6RqvQCmrMvoVCflYPrK1xFENyoysmnOVnj77R/E2YVHEIGfWuldKAraoZBXhb1VZFK9vNsRQ bKerJPCO/gBILGHVtapgIAy8YKhOvemHbpB5nG1UzgjWbKO6RJX48WXOxlK5pFJxdI4RBSRix+Ug NmIUXiQReEl2Gi2lTNXTauYUGxiGBxbjVTprxui12GJJ4mSTechB6ttvAmLztG1WVR1p6LcOKFuN R0JtMuM3xkYjVmZJC0O+RPwHYVkaRYE6uA8fxMxJLDH7U+dY/fe/8M9/vSzF/y8w/7PzYtzF/1+j 1f7+17UjZr1NzLrg3zHB94Tpl/pzMFjFs0Rh2A864Cctft3rCZ6yYcTCKAvhq/4Z+zGfOn6gf/Mk wReOez31x0z+AbbB3VnENrDcdo99+28bec+Nn9JVnJ9C/3+e/7R/Zn84vLAPTj5+PLygQmiCM6qU 7dHfhcHYGpcjDAWG4FPYNuUNNRvSK+xTjWQpLg/cp9H7rdfbQMr+1dLrWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/H9v/ALRev8AAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"