#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=bcee1214be9fea5407e58a65620547070a4eca85 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 H4sIAA0iJWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d/f2dl483/tmZ3f32c7eN2znC9DSaJlInYSxrzHV/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/3fmJ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