#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6152f9047e8dd98bfe4b7c540f76dde17790dfa0 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 H4sIAHz6a2cAA+08a3PbOJLzWb8Ca0+KVEai/Mp4yjtKzuM8xruJ44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaPvPnuHn9v6zbfq9 s7VFn/hof+v7b7b39nd39vefbe3ufLO1vb27tf8N2/oCtDRaLjIvZexrTPV/sW3+ZZSLdHQVRCMe 3bJkkc3iaKe3sbHRM7WCDdkbHvHUyzg7+u47Nk3jOfsVANjxB6fX+0VwwRDe8YQfOox9DMKQZbNA sCvOUn6XBlnGI+ZJKIkVv72gmQib607zLE+567JgnsRpxpI0iDLojSZZEEe9nuoWC9FTQ3x+e5UH oe9cA3L1mCZAMiQMftOPpnE69zKkYjrP5ONJnHL9mKdpnMpu38s8N/Sia/3s0w/ywXwxSRLdOV+E wZXsx1l1d5Z6kcC5mo+AThcQKPqzRRKUU7wNREbs8PmUvU9wzcLuH/QYtE2E5QfM7rPhcxYnWeKl gjsS6hS/pwS38YEDDyPBvAih4CEjyJQFESh6NOHORo8gEzZux2P35XPH831X4rCt4TCKh0nKs2wx JLEM5xw0xRfWgKArzeciG1sS2pVCXAHtkXTHlshAFO7UCwVvRzr18jAbn6c5b3k842Eytj7OYB5Y bBYjp6W6SjqkMiG3NSn9nuLsURxlaRyyU9J90AjgVJpPgByhQUCYbBbFPif9buVPshgGUZANT1Zw ZOEiiButZwMQsJILr5FNS9lQmKpakivndcEiQf1T/t95kILB8lue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PKBMisjZ+gKou54Z0QCqLWOMH4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqus p8OX6/tf5ctWmmevlUen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69Yvg2pErcWW9fYvm25RQKbHQ c0x9DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5VvqpX1C3JmrXtG/q9FJasIf6/K onzlryGGciddJYFX9LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIj Ckgk3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p 6LcOMK3GJ6E2mfE7Y6MRM1nSwpAvFv9BWJbFcaiOzMN7MfNSR8w+6xxr/v7T1l4z/7O3u93F/1+j 1f7+05UnZr1NzLrg37HAF1Hpl/pzIFjFs0Rh2I864CdVft7rCZ6xYcyiOI/gq/6ZBAmfekGof/M0 xTdaez31xyz+BQbCJ7OYbWC57QH79j82ip7rIKNLsCCD/v88+/nwg/vm+Nw9ev/u3fE5FUITnFWl 7ID+LggG2LgcYSkwBJ/C3imvmdmQ3n2eaiRLcfngQ63e773eBlL2vy29rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79f2v/A37CE5IAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"