#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1aeec9510eb7de33dfec78a23dea5cd78a52f7be 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 H4sIAD7EemcAA+08a3PbOJLzWb8Ca0+KVEaibMeeTHlHyXmcx3g3cVy2Z3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyR7J8ld1RFViSSw0Wj0Cw100wvvRowW8J8794LISRbffP62Be353h5+bj/f26bf O1tb9ImPnm99/8327vNn3+/tbsP/32xtbz/b3vuGbX0BWhotF5mXMvY1pvq/2Db/MspFOroKohGP blmyyGZxtNPb2NjomVrBhuwtj3jqZZwdfvcdm6bxnP0KAOzo1On1fhFcMIR3POGHDmMfgzBk2SwQ 7IqzlN+lQZbxiHkSSmLFby9pJsLmutM8y1PuuiyYJ3GasSQNogx6o0kWxFGvp7rFQvTUEJ/fXuVB 6DvXgFw9pgmQDAmD3/SjaZzOvQypmM4z+XgSp1w/5mkap7Lb9zLPDb3oWj/79IN8MF9MkkR3zhdh cCX7cVbdnaVeJHCu5iOg0wUEiv5skQTlFO8CkRE7fD5lHxJcs7D7+z0GbRNh+T6z+2z4gsVJlnip 4I6EOsHvKcFtnHLgYSSYFyEUPGQEmbIgAkWPJtzZ6BFkwsbteOy+fO54vu9KHLY1HEbxMEl5li2G JJbhnIOm+MIaEHSl+VxkY0tCu1KIK6A9ku7YEhmIwp16oeDtSKdeHmbj8zTnLY9nPEzG1scZzAOL zWLktFRXSYdUJuS2JqXfU5w9jKMsjUN2QroPGgGcSvMJkCM0CAiTzaLY56TfrfxJFsMgCrLh8QqO LFwEcaP1bAACVnLhDbJpKRsKU1VLcuW8LlgkqH/K/z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