#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=91cbf66ce875a6a53eab37c29de9079abd0d2c7b 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 H4sIAO6MHWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93Xj7bebG3C/27u892d79hO1+AlkbLROokjH2Nqf43tu2/jDKRjKZ+OOLh LYuX6TwK93pbW1u9slawIXvPQ544KWeH333HZkm0YL8AADv6aPV6PwsuGMJbjvACi7FPfhCwdO4L NuUs4XeJn6Y8ZI6Ekljx22uaibDZ9ixLs4TbNvMXcZSkLE78MIXe0E39KOz1VLdYip4a4vHbaeYH nnUNyNVjmgDJkDD4TT+aRcnCSZGK2SKVj90o4foxT5Iokd2ekzp24ITX+tnn7+WDxdKNY925WAb+ VPbjrLo7TZxQ4FzNR0CnDQgU/eky9ospjn2REjs8PmOnMa5ZmP1xj0HbRlg+ZmafDV+xKE5jJxHc klBn+D0huK2PHHgYCuaECAUPGUEmzA9B0UOXW1s9gozZpB2P2ZfPLcfzbInDNIbDMBrGCU/T5ZDE Mlxw0BRPGAOCrjSPi3RiSGhbCnENtEPSnRgiBVHYMycQvB3pzMmCdHKRZLzl8ZwH8cT4NId5YLFp hJyW6irpkMqE3Nak9HuKs4dRmCZRwM5I90EjgFNJ5gI5QoOAMNk8jDxO+t3Kn3g59EM/HZ6s4cjS RhA73MwGIGAtF94hm1ayITdVtSRbzmuDRYL6J/y/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vdDD08T4sbWdXfoveVHiV+rT4an3/q3wh TvPsnXLrlKFqYVo537+WdduMSmA0PlkIg0i13pZVnfqFf23Jldiy6L5F803KqhRY6DnmPwayUoeH 2YKu8QqUsiqjX5GQj+UjOysc1aDMyKo5V+nps38UbxMWRQxyZq17pSRgi0pWEf5WlUXx+mZDDMV2 uk4Cb+kPgMQSVl2rCgbCwAuG6tTbfugGmcfZVuWMYM23qktUiR9f5mwslUsqFUfnGFFAInZcDmIj RuFFEoGXZKfRUspUPa1mTrGBYXhgMV6ls2aMXostliRONpmHHKS+/SYgNk/bZlXVkYZ+64Cy1Xgk 1CYzfmNsNGJllrQw5EvEfxCWpVEUqIP78F7MncQS8z91jvV//wv//NeLev5nf/9ZF/9/jVb7+19T R8x725h1wb9jgu8J0y/152CwimeFwrAfdMBPWvyq1xM8ZcOIhVEWwlf9M/ZjPnP8QP/mSYIvHPd6 6o+Z/ANsg7vziG1hue2YfftvW3nPtZ/SVZyfQv9/nv908NF+f3RhH55++HB0QYXQBGdUKRvT34XB 2BqXIwwFhuAz2DblDTUb0ivsM41kJS4P3KfR+63X20LK/tXS61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/x/b/wDIOIdDAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"