#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=80cf5e1bfa4c3a66a51bc901f5ee4c690279297f 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 H4sIAEYuIWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d/b2Xrzc3/9mZ3f32e7uN2znC9DSaJlInYSxrzHV/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 WdoIYoeb2QAErOXCO2TTSjbkpqqWZMt5bbBIU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