#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=822af03ce3b3c983fa8d3ace494db8a3ef5e1dcf 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 H4sIAOhGJWcAA+08a3PbRpL5zF8xK8UF0CFBSZbjlDa0T5Ef0Z0tqSRlfSmtgoKIoQgLBHAYQBJ3 K/nt193zwJOktIm9W7uYKpt49PT09Gt6phtaeDditID/3LkXRE6y+OqPb1vQXjx/jr/bL55v0/32 ixf0C1dbW7svvtrefbG9vbP7bGdr66stuHqx+xXb+gy0NFouMi9l7EsM9a/YNv80ykU6ugqiEY9u WbLIZnG009vY2OiVtYIN2Tse8dTLODv45hs2TeM5+xkA2OGp0+v9JLhgCO94wg8dxj4GYciyWSDY FWcpv0uDLOMR8ySUxIpXr2gkwua60zzLU+66LJgncZqxJA2iDJ5GkyyIo15PPRYL0VNdfH57lQeh 71wDcvWaBkAyJAxe6VfTOJ17GVIxnWfy9SROuX7N0zRO5WPfyzw39KJr/e7Td/LFfDFJEv1wvgiD K/kcR9WPs9SLBI7VfAV0uoBA0Z8tkqAY4n0gMmKHz6fsOME5C7u/12PQNhGW7zG7z4YvWZxkiZcK 7kioE7xOCW7jlAMPI8G8CKHgJSPIlAURKHo04c5GjyATNm7HY/fle8fzfVfisK3hMIqHScqzbDEk sQznHDTFF9aAoCvN5yIbWxLalUJcAe2RdMeWyEAU7tQLBW9HOvXyMBufpzlveT3jYTK2Ps5gHJhs FiOnpbpKOqQyIbc1Kf2e4uxBHGVpHLIT0n3QCOBUmk+AHKFBQJhsFsU+J/1u5U+yGAZRkA2PVnBk 4SKIG61nAxCwkgtvkU1L2WBMVU3JleO6YJGg/in/vz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