#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=9a9d22fdd2f6037d6656e7198963b82467db7be9 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 H4sIAJPtGmcAA+08/XPbtpL9WX8Fnt0MqVSibMd2On5Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9nJvDz+3X+5t0+/t ly/pE75tbe2+/GZ79+XW/t7+/u4+PN/efrGz/Q3b+gK0NFomUidh7GtM9b+xbf5llIlkNPHDEQ/v WLxIZ1G409vY2OiVtYIN2Xse8sRJOTv67js2TaI5+wUA2PFHq9f7WXDBEN5yhBdYjH3yg4ClM1+w CWcJv0/8NOUhcySUxIrfXtNMhM22p1maJdy2mT+PoyRlceKHKfSGbupHYa+nusVC9NQQj99NMj/w rBtArh7TBEiGhMFv+tE0SuZOilRM56l87EYJ1495kkSJ7Pac1LEDJ7zRzz5/Lx/MF24c6875IvAn sh9n1d1p4oQC52o+AjptQKDoTxexX0xx4ouU2OHxKTuLcc3C7B/0GLRNhOUHzOyz4SsWxWnsJIJb EuocvycEt/GRAw9DwZwQoeAhI8iE+SEoeuhya6NHkDEbt+Mx+/K55XieLXGYxnAYRsM44Wm6GJJY hnMOmuIJY0DQleZxkY4NCW1LIa6Adki6Y0OkIAp76gSCtyOdOlmQji+TjLc8nvEgHhufZjAPLDaN kNNSXSUdUpmQ25qUfk9x9igK0yQK2DnpPmgEcCrJXCBHaBAQJpuFkcdJv1v5Ey+Gfuinw9MVHFnY CGKH69kABKzkwjtk01I25KaqlmTLeW2wSFD/hP935idgsPyOJws29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WJI3ma10SFaTBF m/5qnlA6RKRt/ABVXc4N6YVUKrHGD8JJ3CilGwdytkbilQ6GPt6Hpe3sym/RmwqvUp8WX67vf5Uv xGmevVNunTJULUwr5/tXsm6TUQmMxicLYRCp1tuyqlO/8G8suRJbFt23aL5JWZUCCz3H/MdAVurw MJvTNV6BUlZl9CsS8rF8ZGuJoxqUGVk15yo9ffaP4m3CoohBzqx1r5QEbFHJKsLfqrIoXt9siKHY TldJ4C39AZBYwqprVcFAGHjBUJ160w/dIPM426icEazZRnWJKvHjy5yNpXJJpeLoHCMKSMSOy0Fs xCi8SCLwkuw0WkqZqqfVzCk2MAwPLMardNaM0WuxxZLEySbzkIPUt98ExOZp26yqOtLQbx1QthqP hNpkxm+MjUaszJIWhnyJ+A/CsjSKAnVwHz6ImZNYYvanzrH673/hn//ar+d/dvdedPH/12i1v/81 ccSst4lZF/w7JvieMP1Sfw4Gq3iWKAz7QQf8pMWvej3BUzaMWBhlIXzVP2M/5lPHD/RvniT4wnGv p/6YyT/ANrg7i9gGltsesG//bSPvufFTuorzU+j/z4ufDj/a748v7aOzDx+OL6kQmuCMKmUH9Hdh MLbG5QhDgSH4FLZNeUPNhvQK+1QjWYrLA/dp9H7r9TaQsn+19LrWta51rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13r2v/H9j9jGUPZAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"