#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=32af77569147625d241188377bc8d9a463054f89 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 H4sIAMQmg2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+3x369nOk+3d3W+2trefbO18w7a+AC2NlovMSxn7GlP9X2ybfxrlIh1dBdGI R7csWWSzONrpbWxs9EytYEP2lkc89TLODr77jk3TeM5+AQB2eOr0ej8LLhjCO57wQ4exD0EYsmwW CHbFWcrv0iDLeMQ8CSWx4reXNBNhc91pnuUpd10WzJM4zViSBlEGvdEkC+Ko11PdYiF6aojPb6/y IPSda0CuHtMESIaEwW/60TRO516GVEznmXw8iVOuH/M0jVPZ7XuZ54ZedK2fffxePpgvJkmiO+eL MLiS/Tir7s5SLxI4V/MR0OkCAkV/tkiCcoqjQGTEDp9P2fsE1yzs/l6PQdtEWL7H7D4bvmBxkiVe KrgjoU7we0pwG6cceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+DzNecvjGQ+TsfVhBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+IoS+OQnZDug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLyC IwsXQdxoPRuAgJVceINsWsqGwlTVklw5rwsWCeqf8n/mQQoGy295umDTgId+yY3z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WOMH4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqus p8OX6/uf5ctWmmdvlEen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69Yvg2pErcWW9fYvm25RQKbHQ c0x9DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5dvqpX1C3JmrXtG/q9FJasIf6vK onzlryGGciddJYHX9LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIj Ckgk3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p 6LcOMK3GJ6E2mfEbY6MRM1nSwpAvFv9BWJbFcaiOzMN7MfNSR8w+6xxr/v7T1m4z/7O7s9vF/1+j 1f7+05UnZr1NzLrg37HAF1Hpl/pzIFjFs0Rh2A864CdVftHrCZ6xYcyiOI/gq/6ZBAmfekGof/M0 xTdaez31xyz+DQbCJ7OYbWC57R779i8bRc91kNElWJBB/z/Ofto/dd8enrsH79+9OzynQmiCs6qU 7dHfBcEAG5cjLAWG4FPYO+U1MxvSu89TjWQpLh98qNX7rdfbQMr+t6XXta51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rX/b+0/N0/hYQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"