#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=59479a50ff4c5bc38ee1225e45f8429ba128cdf0 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 H4sIAKzw0GcAA+07a3PbRpL5zF8xK8UF0CGhpy0XN7RPkR/Rri2rLGVzKZ2CgoChCAsEcBhQEncr +e3X3TMDYACQlC6x76oWU2WLBHp6+j3dPcOFdyO2XDeMw9x1nXTxzRcY2zCe7+/j352DZzv0fXd7 m/6q8c3O/sHz/Z2D7Z2dvW/gv+2959+w7S9BTH3MRe5ljH2Npf4/jgXq/5rHrp+mX0j96/S//3z/ oKb/7YO9g07/X2NsbGz0SvWzIcvnWczQKhxPBBHLeJpxwePcy8MkZmGcJ+zou+96OG+SJTPmupM5 zOGuy8JZmmQ5SzOAgqexj1N6Cizgt1fzMAocWM1B/C7hV3Ps0yy5zrzZgM2SAGAnxQeXD9hNvkj5 oMceMgi2mOTmA3bizfg5ImAin+Xyf/eh6AgYJh3H8N8Nv08zwk0f8r7kbbYA6WlOZosovKo8d+iB fpt71+IuzP3pgEXJtZINEBrG1xrE90Te67lsLCF6IAP2jsfIgQ2QAzbpj4j2TZzIR8wuOKWlnJ+z MOdZnw1fspMk5j0C/unUBShACv/TA6BiWpKDmPvME7g6HxWiCSf0QK3AHZBCf2QIbuLc4XK2BTq3 +r3iHY/qc8/ybNncH8JrePt09fz3oagvLjlCgUkoghkoXvvtayHI95b5siJe5xwF3D71ZY3CqqRw ZF4oODsUgmdo+W+yLMlIsKUWTz0wcrtNiaWVrtCiJjR1lCX0DALZEwH/WOrEgKyy6huwVhtNts14 pCmvMx6EAlnjnzbzweer7Ec6Tov9KLykQ/Ixtd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