#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=22dce501d2d402b4c303f7645f23bb8365b8cf19 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 H4sIALcyPWcAA+08a3PbRpL5zF8xK8UF0CFBUZbslDa0T5Ef0Z0sqSRlfSmdgoKAoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdrdxd/xq90x3Y9f vaJfuNra2nn1zXjn1fjV9ovxePzym63x+MXW7jds6wvQ0miZSJ2Esa8x1P/GtvmXUSaS0bUfjnh4 x+JFOovC7d7GxkavrBVsyD7wkCdOytnBd9+xaRLN2S8AwA7PrF7vZ8EFQ3jLEV5gMfbJDwKWznzB rjlL+H3ipykPmSOhJFa8ekMjETbbnmZplnDbZv48jpKUxYkfpvA0dFM/Cns99VgsRE918fjddeYH nnUDyNVrGgDJkDB4pV9No2TupEjFdJ7K126UcP2aJ0mUyMeekzp24IQ3+t3n7+WL+cKNY/1wvgj8 a/kcR9WP08QJBY7VfAV02oBA0Z8uYr8Y4sgXKbHD41N2EuOchdnf6zFomwjL95jZZ8PXLIrT2EkE tyTUKV4nBLdxxoGHoWBOiFDwkhFkwvwQFD10ubXRI8iYTdrxmH353nI8z5Y4TGM4DKNhnPA0XQxJ LMM5B03xhDEg6ErzuEgnhoS2pRBXQDsk3YkhUhCFPXUCwduRTp0sSCcXScZbXs94EE+MTzMYByab Rshpqa6SDqlMyG1NSr+nOHsQhWkSBeyUdB80AjiVZC6QIzQICJPNwsjjpN+t/IkXQz/00+HxCo4s bASxw/VsAAJWcuE9smkpG3JTVVOy5bg2WCSof8L/O/MTMFh+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SNH6Cqy7khvZBKJdb4QTiJG6V040CO1ki80g7Qx/OwtJ1d+Sl6U+FV6tPi y/X9r/KDOM2z98qtU4aqhWnlfP9K1m0yKoHR+GQhDCLVeltWdXou/BtLzsSWRfctmm9SVqXAQu8x /zGQlTo8zOZ0jFeglFUZ/YqEfCwf2VriqAZlRlbNuUpPn/2j+JqwKGKQI2vdKyUBW1SyivC3qiyK zzcbYiiW01USeEd/ACSWsOpYVTAQBp4kVIfe9EM3yDzONiqbAWu2UZ2iSvz4MmdjqVxSqTg6x4gC ErHjchAbMQpPjAi8JDuNllKm6m01c4oNDMMDi/EqD2vG6LXYYkniZJN5yEHq228CYvO0bVZVHWno t3YoW41HQm0y4zfGRiNWZkkLQ75E/AdhWRpFgdqhDx/EzEksMftTx1j997/wz3+9rOd/dl686uL/ r9Fqf//r2hGz3iZmXfDvmOB3wnSn/hwMVvEsURj2gw74SYtf93qCp2wYsTDKQrjUt7Ef86njB/qe Jwl+cNzrqT9m8g+wDe7OIraB5bZ77Nt/28if3Pgpnbn5KTz/z/Of9s/sD4cX9sHJx4+HF1QITXBG lbI9+rswGFvjdIShwBB8CsumPIpmQ/qEfaqRLMXlgfs0er/1ehtI2b9ael3rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta517f9j+x89bq5XAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"