#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2afb2571ef06b488d6743afa6c70ed93e875de2a 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 H4sIADUYPGcAA+08a3PbRpL5zF8xK8UF0CFBSZbjlDa0T5Ef0Z0tqyxlcymdgoKAoQgLBHCYgSTu VvLbr7tnBm+S8ib23tVhqmzi0dPT06/pmW5o6d2IyRL+cxdeGDvp8qs/v+1Ae/b0Kf7uPnu6S/e7 z57RL1zt7Ow/+2p3/9nus53dJ8/2dr7a2d19srP/Fdv5DLS0Wi6klzH2JYb639i2/zLJRTa5CuMJ j29ZupTzJN4bbG1tDapawcbsDY955knOjr75hs2yZMF+AQB2/MEZDH4SXDCEdzwRRA5jP4dRxOQ8 FOyKs4zfZaGUPGaeglJY8eoFjUTYXHeWyzzjrsvCRZpkkqVZGEt4GvsyTOLBQD8WSzHQXQJ+e5WH UeBcA3L9mgZAMhQMXplXsyRbeBKpmC2keu0nGTeveZYlmXoceNJzIy++Nu8+fqdeLJZ+mpqHi2UU XqnnOKp5LDMvFjhW+xXQ6QICTb9cpmE5xNtQSGJHwGfsfYpzFvbwYMCgbSMsP2D2kI2fsySVqZcJ 7iioU7zOCG7rAwcexoJ5MULBS0aQGQtjUPTY587WgCBTNu3GYw/Ve8cLAlfhsK3xOE7GacalXI5J LOMFB00JhDUi6FoLuJBTS0G7SohroD2S7tQSEkThzrxI8G6kMy+P5PQ8y3nH6zmP0qn18xzGgcnK BDmt1FXRoZQJuW1IGQ40Z4+SWGZJxE5J90EjgFNZ7gM5woCAMNk8TgJO+t3Jn3Q5DuNQjk/WcGTp Iogbb2YDELCWC6+RTSvZUJiqnpKr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