#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=db9399fec1727467a3c01518d9914ef16dfecca0 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 H4sIABlftmYAA+08a3PbRpL5zF8xK8UF0CFBSZbjlDa0T5Ef0Z0tqyxlcymdgoKAoQgLBHAYQBJ3 K/nt193zwJOkvIm9V7WYKpt49PT09Gt6phtaejdisoT/3IUXxk66/OrPbzvQnj19ir+7z57u0v3u s2f0C1c7O/vPvtrd//bp0/2nz548gee7u0/2nn7Fdj4DLa1WiNzLGPsSQ/1/bNt/mRQim1yF8YTH tyxd5vMk3htsbW0NqlrBxuwNj3nm5ZwdffMNm2XJgv0CAOz4gzMY/CS4YAjveCKIHMZ+DqOI5fNQ sCvOMn6XhXnOY+ZJKIkVr17QSITNdWdFXmTcdVm4SJMsZ2kWxjk8jf08TOLBQD0WSzFQXQJ+e1WE UeBcA3L1mgZAMiQMXulXsyRbeDlSMVvk8rWfZFy/5lmWZPJx4OWeG3nxtX738Tv5YrH001Q/XCyj 8Eo+x1H14zzzYoFjtV8BnS4gUPTnyzQsh3gbipzYEfAZe5/inIU9PBgwaNsIyw+YPWTj5yxJ89TL BHck1CleZwS39YEDD2PBvBih4CUjyIyFMSh67HNna0CQKZt247GH8r3jBYErcdjWeBwn4zTjeb4c k1jGCw6aEghrRNC1FnCRTy0J7UohroH2SLpTS+QgCnfmRYJ3I515RZRPz7OCd7ye8yidWj/PYRyY bJ4gp6W6SjqkMiG3NSnDgeLsURLnWRKxU9J90AjgVFb4QI7QICBMNo+TgJN+d/InXY7DOMzHJ2s4 snQRxI03swEIWMuF18imlWwwpqqm5MpxXbBIUP+M/28RZmCw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gupVHKDH4STuFFJN4/kaK3EO20YQzwPy7vZZbIobYVXqW+Hr9b3v8oP4jTPXiu3ThnK DqZV6z3Wsm6bUQmUxicLoRCp1tuqqtNzEV47ciau/OiiQ/NtyqqVWOg95r9GslKLx8WCjvFKlLIq Z1iTUIjlQzsrHNWoysi6OdfpGbJ/lF8TlkUscmSte5UkcIdK1hH+VpdF+flmSwzlcrpOAq/oD4Ck ElYdqwoGwsCDh/rQ22HsR0XA2VZt7+DMt+pTVIm/UObsHJVLrBTHG4woIJF6PgexEaPwgInAK7LT aCllrt7WM+fYwDACsJig9rBhjEGHLVYkTjZpQg5S32EbEFugbbOu6kjDsLND1WoCEmqbGb8xNpmw Kks6GPI54j8Iy/IkidSGfnwv5l7miPmfOsb6v/+Ff/7r22b+B676+P9LtMbf/7ryxHywjVkX/Dsm +J0w3ak/B4NVXCsUhn2vA37S4ueDgeA5GycsTooYLvVtGqZ85oWRvudZhh8cDwbqj5n8A2yD+/OE bWG59QH7+j+2zJPrMKcjujCH5/999uPhB/fN8bl79P7du+NzKoQnOKtO2QH9XRiMrXE6wlJgCD6D ZVOeXLMxfcI+00hW4grAfVqD3waDLaTsXy29vvWtb33rW9/61re+9a1vfetb3/rWt771rW9961vf +ta3vvWtb33rW9/61re+9a1vfetb3/r279j+D708j3sAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"