#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=124f4f15db1482345dc9ceb7188617b119be806e 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 H4sIAI5/bWcAA+08a3PbOJLzWb8Ca0+KVEaibMcZT3lHyXmcx3jXcVy2Z3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyRnJ8ld1RFViSSw0Wj0Cw100wvvVowW8J8794LISRbffP62BW3v+XP83N57vk2/ d7a26BMf7W19/8327t6zZzt7e7vPv/9ma3v72fbeN2zrC9DSaLnIvJSxrzHV/8W2+ZdRLtLRdRCN eHTHkkU2i6Od3sbGRs/UCjZkb3nEUy/j7PC779g0jefsVwBgR2dOr/eL4IIhvOMJP3QY+xCEIctm gWDXnKX8Pg2yjEfMk1ASK357STMRNted5lmectdlwTyJ04wlaRBl0BtNsiCOej3VLRaip4b4/O46 D0LfuQHk6jFNgGRIGPymH03jdO5lSMV0nsnHkzjl+jFP0ziV3b6XeW7oRTf62ccf5IP5YpIkunO+ CINr2Y+z6u4s9SKBczUfAZ0uIFD0Z4skKKc4DkRG7PD5lL1PcM3C7u/3GLRNhOX7zO6z4QsWJ1ni pYI7EuoUv6cEt3HGgYeRYF6EUPCQEWTKgggUPZpwZ6NHkAkbt+Ox+/K54/m+K3HY1nAYxcMk5Vm2 GJJYhnMOmuILa0DQleZzkY0tCe1KIa6A9ki6Y0tkIAp36oWCtyOdenmYjS/SnLc8nvEwGVsfZjAP LDaLkdNSXSUdUpmQ25qUfk9x9jCOsjQO2SnpPmgEcCrNJ0CO0CAgTDaLYp+TfrfyJ1kMgyjIhicr OLJwEcSN1rMBCFjJhTfIpqVsKExVLcmV87pgkaD+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PKBMisjZ+gKou54Z0QCqLWOMH4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqus p8OX6/tf5ctWmmdvlEen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69YvgxpErcWW9fYvm25RQKbHQ c0x9DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5VvqpX1C3JmrXtG/q9FJasIf6/K onzlryGGciddJYHX9LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIj Ckgk3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p 6LcOMK3GJ6E2mfE7Y6MRM1nSwpAvFv9BWJbFcaiOzMMHMfNSR8w+6xxr/v7T1m4z/7O7u93F/1+j 1f7+07UnZr1NzLrg37HAF1Hpl/pzIFjFs0Rh2I864CdVftHrCZ6xYcyiOI/gq/6ZBAmfekGof/M0 xTdaez31xyz+BQbCJ7OYbWC57T779j82ip6bIKNLsCCD/v88//ngzH17dOEevn/37uiCCqEJzqpS tk9/FwQDbFyOsBQYgk9h75TXzGxI7z5PNZKluHzwoVbv915vAyn735Ze17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWtf+v7X/AdRsRn8AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"