#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=155c4115292cdd85c774485359c560a1739e9ad5 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 H4sIAK+UMWcAA+08/XPbtpL9WX8Fnt0MqVSiLNtJOn5Vcq7zUd85tsd2X67jczk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9urFC/wcv3oxpt/j V6/oE75tbe2++ma8+2q8uzPeHo8Bbjze2Rp/w7a+AC2NlonUSRj7GlP9b2ybfxllIhld++GIh3cs XqSzKNzubWxs9MpawYbsAw954qScHXz3HZsm0Zz9AgDs8Mzq9X4WXDCEtxzhBRZjn/wgYOnMF+ya s4TfJ36a8pA5EkpixW9vaCbCZtvTLM0SbtvMn8dRkrI48cMUekM39aOw11PdYiF6aojH764zP/Cs G0CuHtMESIaEwW/60TRK5k6KVEznqXzsRgnXj3mSRIns9pzUsQMnvNHPPn8vH8wXbhzrzvki8K9l P86qu9PECQXO1XwEdNqAQNGfLmK/mOLIFymxw+NTdhLjmoXZ3+sxaJsIy/eY2WfD1yyK09hJBLck 1Cl+Twhu44wDD0PBnBCh4CEjyIT5ISh66HJro0eQMZu04zH78rnleJ4tcZjGcBhGwzjhaboYkliG cw6a4gljQNCV5nGRTgwJbUshroB2SLoTQ6QgCnvqBIK3I506WZBOLpKMtzye8SCeGJ9mMA8sNo2Q 01JdJR1SmZDbmpR+T3H2IArTJArYKek+aARwKslcIEdoEBAmm4WRx0m/W/kTL4Z+6KfD4xUcWdgI Yofr2QAErOTCe2TTUjbkpqqWZMt5bbBIUP+E/3fmJ2Cw/I4nCzb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81TygdItI2foCqLueG9EIqlVjjB+EkbpTSjQM5WyPxSgdDH+/D0nZ25bfoTYVXqU+LL9f3v8oX 4jTP3iu3ThmqFqaV8/0rWbfJqARG45OFMIhU621Z1alf+DeWXIkti+5bNN+krEqBhZ5j/mMgK3V4 mM3pGq9AKasy+hUJ+Vg+srXEUQ3KjKyac5WePvtH8TZhUcQgZ9a6V0oCtqhkFeFvVVkUr282xFBs p6sk8I7+AEgsYdW1qmAgDLxgqE696YdukHmcbVTOCNZso7pElfjxZc7GUrmkUnF0jhEFJGLH5SA2 YhReJBF4SXYaLaVM1dNq5hQbGIYHFuNVOmvG6LXYYkniZJN5yEHq228CYvO0bVZVHWnotw4oW41H Qm0y4zfGRiNWZkkLQ75E/AdhWRpFgTq4Dx/EzEksMftT51j997/wz3+9rOd/dnd2uvj/a7Ta3/+6 dsSst4lZF/w7JvieMP1Sfw4Gq3iWKAz7QQf8pMWvez3BUzaMWBhlIXzVP2M/5lPHD/RvniT4wnGv p/6YyT/ANrg7i9gGltvusW//bSPvufFTuorzU+j/z/Of9s/sD4cX9sHJx4+HF1QITXBGlbI9+rsw GFvjcoShwBB8CtumvKFmQ3qFfaqRLMXlgfs0er/1ehtI2b9ael3rWte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta517f9j+x+w48AGAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"