#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=02b146b3c395c45c50746cfa1e89894660c5a82c 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 H4sIAEgqIWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d/b29l/uv/hmZ3f32e7uN2znC9DSaJlInYSxrzHV/8a2/ZdRJpLR1A9H PLxl8TKdR+Feb2trq1fWCjZk73nIEyfl7PC779gsiRbsFwBgRx+tXu9nwQVDeMsRXmAx9skPApbO fcGmnCX8LvHTlIfMkVASK357TTMRNtueZWmWcNtm/iKOkpTFiR+m0Bu6qR+FvZ7qFkvRU0M8fjvN /MCzrgG5ekwTIBkSBr/pR7MoWTgpUjFbpPKxGyVcP+ZJEiWy23NSxw6c8Fo/+/y9fLBYunGsOxfL wJ/KfpxVd6eJEwqcq/kI6LQBgaI/XcZ+McWxL1Jih8dn7DTGNQuzP+4xaNsIy8fM7LPhKxbFaewk glsS6gy/JwS39ZEDD0PBnBCh4CEjyIT5ISh66HJrq0eQMZu04zH78rnleJ4tcZjGcBhGwzjhaboc kliGCw6a4gljQNCV5nGRTgwJbUshroF2SLoTQ6QgCnvmBIK3I505WZBOLpKMtzye8yCeGJ/mMA8s No2Q01JdJR1SmZDbmpR+T3H2MArTJArYGek+aARwKslcIEdoEBAmm4eRx0m/W/kTL4d+6KfDkzUc WdoIYoeb2QAErOXCO2TTSjbkpqqWZMt5bbBIUP+E/3f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g/CSdwopRsHcrZG4pUOhj7eh6Xt7Mpv0ZsKr1KfFl+t73+V L8Rpnr1Tbp0yVC1MK+f717Jum1EJjMYnC2EQqdbbsqpTv/CvLbkSWxbdt2i+SVmVAgs9x/zHQFbq 8DBb0DVegVJWZfQrEvKxfGRnhaMalBlZNecqPX32j+JtwqKIQc6sda+UBGxRySrC36qyKF7fbIih 2E7XSeAt/QGQWMKqa1XBQBh4wVCdetsP3SDzONuqnBGs+VZ1iSrx48ucjaVySaXi6BwjCkjEjstB bMQovEgi8JLsNFpKmaqn1cwpNjAMDyzGq3TWjNFrscWSxMkm85CD1LffBMTmadusqjrS0G8dULYa j4TaZMZvjI1GrMySFoZ8ifgPwrI0igJ1cB/ei7mTWGL+p86x/u9/4Z//elHP/+zvP+vi/6/Ran// a+qIeW8bsy74d0zwPWH6pf4cDFbxrFAY9oMO+EmLX/V6gqdsGLEwykL4qn/Gfsxnjh/o3zxJ8IXj Xk/9MZN/gG1wdx6xLSy3HbNv/20r77n2U7qK81Po/8/znw4+2u+PLuzD0w8fji6oEJrgjCplY/q7 MBhb43KEocAQfAbbpryhZkN6hX2mkazE5YH7NHq/9XpbSNm/Wnpd61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWude3/Y/sfuUR5xQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"