#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ade5dd856e71f8314434f1fd988b6189e084aa1f 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 H4sIABUuPWcAA+08/XPbtpL9WX8Fnt0MqVSibMeJO35Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvLs5YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtvfyJX5u773cpt/b e3v0Cd+2tnb3vtne3dve29l59eol9G9vv9h58Q3b+gK0NFomUidh7GtM9b+xbf5llIlkNPHDEQ/v WLxIZ1G409vY2OiVtYIN2Qce8sRJOTv87js2TaI5+wUA2NG51ev9LLhgCG85wgssxj75QcDSmS/Y hLOE3yd+mvKQORJKYsVvb2gmwmbb0yzNEm7bzJ/HUZKyOPHDFHpDN/WjsNdT3WIhemqIx+8mmR94 1g0gV49pAiRDwuA3/WgaJXMnRSqm81Q+dqOE68c8SaJEdntO6tiBE97oZ5+/lw/mCzeOded8EfgT 2Y+z6u40cUKBczUfAZ02IFD0p4vYL6Y49kVK7PD4lJ3GuGZh9vd7DNomwvJ9ZvbZ8DWL4jR2EsEt CXWG3xOC2zjnwMNQMCdEKHjICDJhfgiKHrrc2ugRZMzG7XjMvnxuOZ5nSxymMRyG0TBOeJouhiSW 4ZyDpnjCGBB0pXlcpGNDQttSiCugHZLu2BApiMKeOoHg7UinThak48sk4y2PZzyIx8anGcwDi00j 5LRUV0mHVCbktial31OcPYzCNIkCdka6DxoBnEoyF8gRGgSEyWZh5HHS71b+xIuhH/rp8GQFRxY2 gtjhejYAASu58B7ZtJQNuamqJdlyXhssEtQ/4f+d+QkYLL/jy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Tk3pBdSqcQaPwgncaOUbhzI2RqJVzoB+ngflrazK79Fbyq8Sn1a fLm+/1W+EKd59l65dcpQtTCtnO9fybpNRiUwGp8shEGkWm/Lqk79wr+x5EpsWXTfovkmZVUKLPQc 8x8DWanDw2xO13gFSlmV0a9IyMfyka0ljmpQZmTVnKv09Nk/ircJiyIGObPWvVISsEUlqwh/q8qi eH2zIYZiO10lgXf0B0BiCauuVQUDYeBNQnXqTT90g8zjbKNyGLBmG9UlqsSPL3M2lsollYqjc4wo IBE7LgexEaPwxojAS7LTaCllqp5WM6fYwDA8sBiv0lkzRq/FFksSJ5vMQw5S334TEJunbbOq6khD v3VA2Wo8EmqTGb8xNhqxMktaGPIl4j8Iy9IoCtQJffggZk5iidmfOsfqv/+Ff/7rVT3/swvgXfz/ FVrt739NHDHrbWLWBf+OCb4nTL/Un4PBKp4lCsN+0AE/afHrXk/wlA0jFkZZCF/1z9iP+dTxA/2b Jwm+cNzrqT9m8g+wDe7OIraB5bb77Nt/28h7bvyU7tz8FPr/8+Kng3P7w9GlfXj68ePRJRVCE5xR pWyf/i4Mxta4HGEoMASfwrYpr6LZkF5hn2okS3F54D6N3m+93gZS9q+WXte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd+//Y/gdHexXuAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"