#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b529058df61c33802f67c47ac981b8babf45fe68 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 H4sIAKujI2cAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jUzk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d17u7T7fAbjd3Wc7+9+wnS9AS6NlInUSxr7GVP8b2/ZfRplIRld+OOLh LYuX6TwK93pbW1u9slawIXvPQ544KWeH333HZkm0YL8AADv6aPV6PwsuGMJbjvACi7FPfhCwdO4L dsVZwu8SP015yBwJJbHit9c0E2Gz7VmWZgm3beYv4ihJWZz4YQq9oZv6UdjrqW6xFD01xOO3V5kf eNY1IFePaQIkQ8LgN/1oFiULJ0UqZotUPnajhOvHPEmiRHZ7TurYgRNe62efv5cPFks3jnXnYhn4 V7IfZ9XdaeKEAudqPgI6bUCg6E+XsV9MceyLlNjh8Rk7jXHNwuyPewzaNsLyMTP7bPiKRXEaO4ng loQ6w+8JwW195MDDUDAnRCh4yAgyYX4Iih663NrqEWTMJu14zL58bjmeZ0scpjEchtEwTniaLock luGCg6Z4whgQdKV5XKQTQ0LbUohroB2S7sQQKYjCnjmB4O1IZ04WpJOLJOMtj+c8iCfGpznMA4tN I+S0VFdJh1Qm5LYmpd9TnD2MwjSJAnZGug8aAZxKMhfIERoEhMnmYeRx0u9W/sTLoR/66fBkDUeW NoLY4WY2AAFrufAO2bSSDbmpqiXZcl4bLBLUP+H/nfkJGCy/5cmS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Rt +ut5QukQkbbxA1R1NTekF1KpxBo/CCdxo5RuHMjZGolXOhj6eB+WtrMrv0VvKrxKfVp8tb7/Vb4Q p3n2Trl1ylC1MK2c71/Lum1GJTAanyyEQaRab8uqTv3Cv7bkSmxZdN+i+SZlVQos9BzzHwNZqcPD bEHXeAVKWZXRr0jIx/KRnRWOalBmZNWcq/T02T+KtwmLIgY5s9a9UhKwRSWrCH+ryqJ4fbMhhmI7 XSeBt/QHQGIJq65VBQNh4AVDdeptP3SDzONsq3JGsOZb1SWqxI8vczaWyiWViqNzjCggETsuB7ER o/AiicBLstNoKWWqnlYzp9jAMDywGK/SWTNGr8UWSxInm8xDDlLffhMQm6dts6rqSEO/dUDZajwS apMZvzE2GrEyS1oY8iXiPwjL0igK1MF9eC/mTmKJ+Z86x/q//4V//utFPf+z/+xFF/9/jVb7+19X jpj3tjHrgn/HBN8Tpl/qz8FgFc8KhWE/6ICftPhVryd4yoYRC6MshK/6Z+zHfOb4gf7NkwRfOO71 1B8z+QfYBnfnEdvCctsx+/bftvKeaz+lqzg/hf7/PP/p4KP9/ujCPjz98OHoggqhCc6oUjamvwuD sTUuRxgKDMFnsG3KG2o2pFfYZxrJSlweuE+j91uvt4WU/aul17Wuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/j+2/wGENP8vAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"