#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6dea65038daeb03e86f369c6b8da3cba055dc45f 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 H4sIAJXgomYAA+08/XPbNrL9WX8Fzm6GVCpRsvPV0VXJc52P+i5xPLF7fR0/l0OTkMWYIvkIyrbu pv3b3+4CIAmSkpxrk3tzR8zEksjFYrFf2F0AWXnXYpRnXixmSbZw0tVXf3wbQ3v6+DF+7j17ske/ 9549o0/49nj/yaOv9h4/fTJ+8nS892j/q/He3iMAZ+PPQEujLUXuZYx9iaH+P7adnZ1eVfxsyPJl FrN5skiueMyTpWBxGH3reCKIWMbTjAse52ESszDOEzbnOc80ZG8F2lSD9BC2h8PMsmTBXHe2hAG4 67JwkSZZztIMEMHT2CdIBRbwm8tlGAUOoHaQAJfQqj7xjRct+UB9uuW3vK07UmV0t98lwTKCXidA euYtBmyRBNBnVnxx80GP3add56sUENEHdGIiX6i/+Oua36XZvXEdxdDlLLnm8YCdhlexh4wasGNv wc8AfV/xZrHy09RZrKLwUk8oSq4GLPeuxG2Y+3MFBySF8ZUG8T0B2N+GIu/1XDbFLr1eD6bK3oEJ fM9PV4vLJLKRj/0J0buLGPiE2Zq3fTZ8DlPL6G04I547MKrdZ3+aFrJwJKZJMefMCwVnB0LwDCX8 KsuSzLZe3aXcz3nAJPiAXSU5eyAs9oAw9al7xkkZkXZFhaPBCcgRxhxwdttngFDn+snFlskg8L2n gsD3nogEltMIc77QUznT1ghos+2zUSrWI5AfT1x8yeQE6BFoxLxUDYmPeQJJ4eXEgAH4wC7mDbrY nxhqqxBXp0AKq8bsG8BR4gMs6bJtpV4+twbM8ufL+Bq+jAf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YhWgqvLr64PD1+v5nuSGiefZauXU6od7CtOp9n42s22V0BU7jkxfhEKnW26qq03MRXjly Jq78TzdaNN+mU9UlFnqP558H8qYej5cLKuOVKOWtrL4hoRCvj43XOKpBlZGmOZv09Nk/yt2k8hKT HFnrXuUSQItKmgh/NWVRbt81xFAup5sk8IoOgKUSVpVVBQNhYOHBHHo3jP1oGXC2Y+QOznzHnKI6 4BPKM9uOOkJT+c8RCowoIJF6PgexEaOwwETgFdlptHRlQr01b05gA8MIwGIC42HNGIMWW6xInGyy CDlIfftNQGyBtk1T1ZGGfmuHqtUEJNQmM35lbDRiVZa0MORzxH8U/+vzgZ8pAdgS/2Orn/8eA1gX /3+BBmF5niSRKugM78Tcyxwx/0PH2Hz+H4//P63v/z1+9LST/5dotfP/l56Y93Zx1w3PMeI5Afql joPiYZM1CsO+0wkfebHnvZ7gORsmLE6WMXzVP9Mw5TMvjPRvnmV44KDXU4cZ/wG+kfvzhO3gqdkJ +/q/doonV2FOJdowh+f/ffrDwQf3zdGZe/j+3bujMzrWTnCWSdmEzoViboXTEZYCQ/AZhE1y54IN 6QjLTCNZiyuA5dPq/drr7SBl/2rpda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1/8T2f+Llc4sAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"