#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=612735036b6d18afdaac20db0f60d62f6d278049 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 H4sIAEnFoWYAA+08bXPbuNH3Wb8CtS9DKidRtuO8jHpK6nNezm3ieGJfrzd+fByahCzGFMkSlG21 c/fbu7sASIKkJKd3SZ9piZlYErlYLPYNuwsgS+9ajPLMi8U0yeZOuvzq92870J7s7+Pn7tPHu/R7 9+lT+oRv+3uPH321u//k8c6j/b393Sdf7ezuPtp/+hXb+Qy0NNpC5F7G2JcY6v9j29ra6lXFz4Ys X2QxmyXz5IrHPFkIFofRM8cTQcQynmZc8DgPk5iFcZ6wGc95piF7S9CmGqSHsD0cZpolc+a60wUM wF2XhfM0yXKWZoAInsY+QSqwgN9cLsIocAC1gwS4hFb1iW+8aMEH6tMtv+Vt3ZEqo7v9LgkWEfQ6 AdIzbz5g8ySAPtPii5sPeuw+7TpfpoCIPqATE/lc/cVf1/wuze6N6yiGLmfJNY8H7DS8ij1k1IAd e3N+Buj7ijfzpZ+mznwZhZd6QlFyNWC5dyVuw9yfKTggKYyvNIjvCcD+NhR5r+eyCXbp9XowVfYO TOA7frqcXyaRjXzsj4nebcTAx8zWvO2z4XOYWkZvwynx3IFR7T77w6SQhSMxjYs5Z14oODsQgmco 4VdZlmS29eou5X7OAybBB+wqydkDYbEHhKlP3TNOyoi0KyocDU5AjjDmgLPbPAOEOtdPLjZMBoHv PRUEvvdEJLCcRpjzuZ7KmbZGQJttno1SsR6B/HDi4ksmJ0CPQCNmpWpIfMwTSAovJwYMwAd2MW/Q xf7YUFuFuDoFUlg1Zt8AjhIfYEmXbSv18pk1YJY/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I2LF5Qw hlgPy9vZVexCNBVeXX1w+Gp9/6PcENE8e63cOp1Qb2Fa9b7PWtZtM7oCp/HJi3CIVOttVdXpuQiv HDkTV/6nGy2ab9Op6hILvcfzzwN5U4/HizmV8UqU8lZW35BQiNfHdlY4qkGVkaY5m/T02T/L3aTy EpMcWete5RJAi0qaCH8xZVFu3zXEUC6n6yTwig6ApRJWlVUFA2Fg4cEcejuM/WgRcLZl5A7ObMuc ojrgE8oz2446QlP5zxEKjCggkXo+B7ERo7DAROAV2Wm0dGVCvTVvTmADwwjAYgLjYc0YgxZbrEic bLIIOUh9+01AbIG2TVPVkYZ+a4eq1QQk1CYzfmFsNGJVlrQw5HPEfxT/6/OBnykB2BD/Y6uf/96B lKCL/79Ag7A8T5JIFXSGd2LmZY6Y/a5jrD//j8f/n9T3//b3dzv5f4lWO/9/6YlZbxt33fAcI54T oF/qOCgeNlmhMOxbnfCRF3ve6wmes2HC4mQRw1f9Mw1TPvXCSP/mWYYHDno9dZjxn+AbuT9L2Bae mh2zr/+0VTy5CnMq0YY5PP/b6fcHH9w3R2fu4ft3747O6Fg7wVkmZWM6F4q5FU5HWAoMwacQNsmd CzakIyxTjWQlrgCWT6v3S6+3hZT9p6XXta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWtf+F9u/ALU337wAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"