#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1a8f11e138b0d4282ecb008cad62fd1fe481b7ab 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 H4sIACJ+JWcAA+08a3PbRpL5zF8xK8UF0CFBSZatlDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37ag7b18ib/bey+36X57 b49+4Wpra3fvm+3dve3tnb1Xr/YAbnv7xc7ON2zrC9DSaJlInYSxrzHU/8a2+ZdRJpLRxA9HPLxj 8SKdReFOb2Njo1fWCjZkH3jIEyfl7PC779g0iebsFwBgR+dWr/ez4IIhvOUIL7AY++QHAUtnvmAT zhJ+n/hpykPmSCiJFa/e0EiEzbanWZol3LaZP4+jJGVx4ocpPA3d1I/CXk89FgvRU108fjfJ/MCz bgC5ek0DIBkSBq/0q2mUzJ0UqZjOU/najRKuX/MkiRL52HNSxw6c8Ea/+/y9fDFfuHGsH84XgT+R z3FU/ThNnFDgWM1XQKcNCBT96SL2iyGOfZESOzw+ZacxzlmY/f0eg7aJsHyfmX02fM2iOI2dRHBL Qp3hdUJwG+cceBgK5oQIBS8ZQSbMD0HRQ5dbGz2CjNm4HY/Zl+8tx/NsicM0hsMwGsYJT9PFkMQy nHPQFE8YA4KuNI+LdGxIaFsKcQW0Q9IdGyIFUdhTJxC8HenUyYJ0fJlkvOX1jAfx2Pg0g3FgsmmE nJbqKumQyoTc1qT0e4qzh1GYJlHAzkj3QSOAU0nmAjlCg4Aw2SyMPE763cqfeDH0Qz8dnqzgyMJG EDtczwYgYCUX3iOblrIhN1U1JVuO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