#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=28662b1d86f3c618d0e93e04498efc4da2eec942 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 H4sIAANPIWcAA+08/XPbtpL9WX8Fnt0MqVSiZMeJO35Vcq7zUd85tsd2X67jczk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/fhtD2335Ej+3dl9u0e+t 3V36hG/j8c7uN1s7u1vj7Z3d7Z3xN+OtrRfjF9+w8RegpdEykToJY19jqv+NbfMvo0wko2s/HPHw jsWLdBaF272NjY1eWSvYkH3gIU+clLOD775j0ySas18AgB2eWb3ez4ILhvCWI7zAYuyTHwQsnfmC XXOW8PvET1MeMkdCSaz47Q3NRNhse5qlWcJtm/nzOEpSFid+mEJv6KZ+FPZ6qlssRE8N8fjddeYH nnUDyNVjmgDJkDD4TT+aRsncSZGK6TyVj90o4foxT5Iokd2ekzp24IQ3+tnn7+WD+cKNY905XwT+ tezHWXV3mjihwLmaj4BOGxAo+tNF7BdTHPkiJXZ4fMpOYlyzMPt7PQZtE2H5HjP7bPiaRXEaO4ng loQ6xe8JwW2cceBhKJgTIhQ8ZASZMD8ERQ9dbm30CDJmk3Y8Zl8+txzPsyUO0xgOw2gYJzxNF0MS y3DOQVM8YQwIutI8LtKJIaFtKcQV0A5Jd2KIFERhT51A8HakUycL0slFkvGWxzMexBPj0wzmgcWm EXJaqqukQyoTcluT0u8pzh5EYZpEATsl3QeNAE4lmQvkCA0CwmSzMPI46Xcrf+LF0A/9dHi8giML G0HscD0bgICVXHiPbFrKhtxU1ZJsOa8NFgnqn/D/zvwED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lNVJgG U7Tpr+YJpUNE2sYPUNXl3JBeSKUSa/wgnMSNUrpxIGdrJF7pYOjjfVjazq78Fr2p8Cr1afHl+v5X +UKc5tl75dYpQ9XCtHK+fyXrNhmVwGh8shAGkWq9Las69Qv/xpIrsWXRfYvmm5RVKbDQc8x/DGSl Dg+zOV3jFShlVUa/IiEfy0fGSxzVoMzIqjlX6emzfxRvExZFDHJmrXulJGCLSlYR/laVRfH6ZkMM xXa6SgLv6A+AxBJWXasKBsLAC4bq1Jt+6AaZx9lG5YxgzTaqS1SJH1/mbCyVSyoVR+cYUUAidlwO YiNG4UUSgZdkp9FSylQ9rWZOsYFheGAxXqWzZoxeiy2WJE42mYccpL79JiA2T9tmVdWRhn7rgLLV eCTUJjN+Y2w0YmWWtDDkS8R/EJalURSog/vwQcycxBKzP3WO1X//C//816t6/mfnxcsu/v8arfb3 v64dMettYtYF/44JvidMv9Sfg8EqniUKw37QAT9p8eteT/CUDSMWRlkIX/XP2I/51PED/ZsnCb5w 3OupP2byD7AN7s4itoHltnvs23/byHtu/JSu4vwU+v/z/Kf9M/vD4YV9cPLx4+EFFUITnFGlbI/+ LgzG1rgcYSgwBJ/CtilvqNmQXmGfaiRLcXngPo3eb73eBlL2r5Ze17rWta51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta137/9j+B6bUKQAAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"