#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2de35a2d83103a2de6ae86338155e333d867a2ae 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 H4sIAEIvJGcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d3f2Xj579uKbnd3dZzsvvmE7X4CWRstE6iSMfY2p/je27b+MMpGMpn44 4uEti5fpPAr3eltbW72yVrAhe89DnjgpZ4fffcdmSbRgvwAAO/po9Xo/Cy4YwluO8AKLsU9+ELB0 7gs25Szhd4mfpjxkjoSSWPHba5qJsNn2LEuzhNs28xdxlKQsTvwwhd7QTf0o7PVUt1iKnhri8dtp 5geedQ3I1WOaAMmQMPhNP5pFycJJkYrZIpWP3Sjh+jFPkiiR3Z6TOnbghNf62efv5YPF0o1j3blY Bv5U9uOsujtNnFDgXM1HQKcNCBT96TL2iymOfZESOzw+Y6cxrlmY/XGPQdtGWD5mZp8NX7EoTmMn EdySUGf4PSG4rY8ceBgK5oQIBQ8ZQSbMD0HRQ5dbWz2CjNmkHY/Zl88tx/NsicM0hsMwGsYJT9Pl kMQyXHDQFE8YA4KuNI+LdGJIaFsKcQ20Q9KdGCIFUdgzJxC8HenMyYJ0cpFkvOXxnAfxxPg0h3lg sWmEnJbqKumQyoTc1qT0e4qzh1GYJlHAzkj3QSOAU0nmAjlCg4Aw2TyMPE763cqfeDn0Qz8dnqzh yNJGEDvczAYgYC0X3iGbVrIhN1W1JFv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9Egy+8/VhQljuRpXhMVpsEU bfrreULpEJG28QNUdTU3pBdSqcQaPwgncaOUbhzI2RqJVzoY+ngflrazK79Fbyq8Sn1afLW+/1W+ EKd59k65dcpQtTCtnO9fy7ptRiUwGp8shEGkWm/Lqk79wr+25EpsWXTfovkmZVUKLPQc8x8DWanD w2xB13gFSlmV0a9IyMfykZ0VjmpQZmTVnKv09Nk/ircJiyIGObPWvVISsEUlqwh/q8qieH2zIYZi O10ngbf0B0BiCauuVQUDYeAFQ3XqbT90g8zjbKtyRrDmW9UlqsSPL3M2lsollYqjc4woIBE7Lgex EaPwIonAS7LTaCllqp5WM6fYwDA8sBiv0lkzRq/FFksSJ5vMQw5S334TEJunbbOq6khDv3VA2Wo8 EmqTGb8xNhqxMktaGPIl4j8Iy9IoCtTBfXgv5k5iifmfOsf6v/+Ff/7rRT3/s7+/08X/X6PV/v7X 1BHz3jZmXfDvmOB7wvRL/TkYrOJZoTDsBx3wkxa/6vUET9kwYmGUhfBV/4z9mM8cP9C/eZLgC8e9 nvpjJv8A2+DuPGJbWG47Zt/+21bec+2ndBXnp9D/n+c/HXy03x9d2IenHz4cXVAhNMEZVcrG9Hdh MLbG5QhDgSH4DLZNeUPNhvQK+0wjWYnLA/dp9H7r9baQsn+19LrWta51rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13r2v/H9j8RD3SNAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"