#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2883cec254f3602558d7239ee53c02ea2af653b9 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 H4sIAPKxemcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3afPtnderqz+83W9jZ8+YZtfQFaGi0XmZcy9jWm+r/YNv80ykU6ugyiEY9u WLLIZnG009vY2OiZWsGG7A2PeOplnB1+9x2bpvGc/QIA7OiD0+v9LLhgCO94wg8dxj4GYciyWSDY JWcpv02DLOMR8ySUxIrfXtBMhM11p3mWp9x1WTBP4jRjSRpEGfRGkyyIo15PdYuF6KkhPr+5zIPQ d64AuXpMEyAZEga/6UfTOJ17GVIxnWfy8SROuX7M0zROZbfvZZ4betGVfvbpe/lgvpgkie6cL8Lg UvbjrLo7S71I4FzNR0CnCwgU/dkiCcop3gYiI3b4fMreJ7hmYff3ewzaJsLyfWb32fA5i5Ms8VLB HQl1gt9Tgtv4wIGHkWBehFDwkBFkyoIIFD2acGejR5AJG7fjsfvyueP5vitx2NZwGMXDJOVZthiS WIZzDpriC2tA0JXmc5GNLQntSiGugPZIumNLZCAKd+qFgrcjnXp5mI3P0py3PJ7xMBlbH2cwDyw2 i5HTUl0lHVKZkNualH5PcfYwjrI0DtkJ6T5oBHAqzSdAjtAgIEw2i2Kfk3638idZDIMoyIbHKziy cBHEjdazAQhYyYXXyKalbChMVS3JlfO6YJGg/in/Zx6kYLD8hqc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CqLWOMH4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqusp8OX 6/uf5ctWmmevlUen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69YvgypErcWW9fYvm25RQKbHQc0x9 DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5dvqpX1C3JmrXtG/q9FJasIf6vKonzl ryGGciddJYFX9LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIjCkgk 3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p6LcO MK3GJ6E2mfEbY6MRM1nSwpAvFv9BWJbFcaiOzMM7MfNSR8w+6xxr/v7T1l4z/7O3u9XF/1+j1f7+ 06UnZr1NzLrg37HAF1Hpl/pzIFjFs0Rh2A864CdVft7rCZ6xYcyiOI/gq/6ZBAmfekGof/M0xTda ez31xyz+DQbCJ7OYbWC57T779i8bRc9VkNElWJBB/z9Ofzr44L45OnMP3797d3RGhdAEZ1Up26e/ C4IBNi5HWAoMwaewd8prZjakd5+nGslSXD74UKv3W6+3gZT9b0uva13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/39p/AAFARTAAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"